hours = float(input("How many hours did you work? ")) if hours < 0 or hours > 168: print("Oops, that's not possible!") hours = float(input("How many hours did you work? ")) wage = float(input("What is your hourly wage? ")) if wage < 12: print("You must earn the minimum wage.") wage = float(input("What is your hourly wage? ")) if hours > 40: print("You got over time this week!") earnings = 40 * wage + ((hours - 40) * wage * 1.5) else: earnings = hours * wage print("You didn't get over time.") print("You earned", earnings, "this week.")