``` def computepay(h,r): if h<=40: return h*r elif h>40: return ((40*r)+((h-40)*r*1.5)) h = float(input("Enter Hours:")) r = float(input("Enter Rate:")) p = computepay(h,r) print("Pay",p) ```