# A payroll program def payroll(): x1 = raw_input ("Please enter next employee's name (or quit): ") while x1 != "quit": x2 = input ("How many hours did " + x1 + " work this week? ") x3 = input ("What is " + x1 + "'s hourly rate? ") p = x2 * x3 if x3 > 40: o = 1.5 * p * x2 else: o = x2 * x3 p = p + o x1 = raw_input ("Please enter next employee's name (or quit): ") print "x1 earned ", p ,"dollars this week." payroll()