# pay.py # Ask the user for hours worked and pay rate. Output weekly pay. # Assume 1.5x overtime is paid beyond 40 hours. hours = input("How may hours did you work?") rate = input("How much do you make per hour?") if hours <= 40: pay = hours * rate else: pay = 40 * rate + (hours - 40) * 1.5 * rate print "Your pay is" print pay