##Example 1 def calculatePay(make,hours): if hours<=0: total = 0 total = round(total,2) return total elif hours<=40: total = hours*make total = round(total,2) return total else: over40 = hours-40 base = 40*make extra = over40*make*1.5 total = base+extra total = round(total,2) return total ######################### ##Example 2 def calculatePay(pay,hours): if hours>40: total = 40*pay + 1.5*pay*(hours-40) else: total = hours * pay total = round(total,2) return total ######################### ##Example 3 def calculatePay(x, y): if x> 40: pC = (40 * y + (40-x)* 1.5*y) pC = round(pC, 2) else: pC = x* y pC = round(pC, 2) return pC