 def tax ():
     taxCredit = 0
     taxRate = 0.2
     income = input ("Enter your pre-tax income: ")
     if (income < 10000):
         print "Eligible for social assistance"
         taxCredit = 100
     tax = (income * taxRate) - taxCredit
     print tax