#a few simple programs to illustrate the use #of the if statement and its relatives #These will be progressively more complex #systems for computing income tax. #In this simple version, the tax is simply 15% of #the income over $20,000 def tax1(): tax=0 income = input("Enter income") if income>20000: tax=0.15*(income-20000) #we print the amount of tax rounded to a whole # dollar amount print "Your tax is $",int(round( tax))