hrs = float(input('Enter Hours:')) rate = float(input ('Enter Rate:')) h = float(hrs) - 40 r = float (rate) * 1.5 def computepay(h,r): retun ((h*r) if hrs <= 40: print (hrs * rate) else : print(computepay)
if else with comparison >= does not work
Users browsing this thread: 2 Guest(s)