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
0
Answer:
p= h*r
Explanation:
hrs = input (" Enter rate per hour :")
Similar questions
Chemistry,
4 months ago
Science,
4 months ago
Business Studies,
4 months ago
Math,
8 months ago
Hindi,
11 months ago
Computer Science,
11 months ago
Math,
11 months ago