Computer Science, asked by divyabenjamine, 8 months ago

def computepay(h,r):
if h>40: p = 1.5 * r * (h-40) + (40*r)
else:
p = h*r
return p
hrs= input("Enter hours:")
hr = float(hrs)
rphrs = input("Enter rate per hour:")
rphr = float(rphrs)
p = computepay(hr,rphr)
print("Pay",p)
In these statements any error would be see ,please help me to change the error.

Answers

Answered by arunrajput19
0

Answer:

p= h*r

Explanation:

hrs = input (" Enter rate per hour :")

Similar questions