def computepay(hours, rate): output = 0 hours = int(hours) rate = float(rate) if (hours > 40): output = 40*rate + (hours-40)*rate*1.5 else: output = hours*rate return output print('Input:') hours = input('Enter Hours: ') rate = input('Enter Rate: ') pay = computepay(hours, rate) print('Output:') print(f"Pay: {pay}")