#Here we have a more complex taxation system, with #different tax brackets and different filing statuses. def tax3(): income = input("Enter income") status=raw_input("Enter filing status, 'married' or 'single'.") if status=="married" or status == "Married": if income>80000: tax=0.25*(income-80000)+0.15*40000 elif income>40000: tax=0.15*(income-40000) else: tax=0 print "Your tax is $",int(round(tax)) elif status=="single" or status =="Single": if income>40000: tax=0.25*(income-40000)+0.15*20000 elif income>20000: tax=0.15*(income-20000) else: tax=0 print "Your tax is $",int(round(tax)) else: print "Filing status not recognized."