pay = input("How many hours did you work this week?") hours = input("How much do you make an hour?") if hours > 40 : print (hours - 40) * (pay * 1.5) + (40 * pay) else:print hours * pay