Coursera---Programming-for-Everybody-Getting-Started-with-Python-
Coursera---Programming-for-Everybody-Getting-Started-with-Python- copied to clipboard
this contains all the answers to the quizes and asssignments for "Programming for Everybody (Getting Started with Python)" on Coursera by the University of Michigan.
return ((h-5)*r)+rate1 is math point of view is not correct.
In the print syntax "Pay" is missing I have added it.
def computepay(h,r): if h>40: rate1 = (r*1.5)*(h-40) return ((h-5)*r)+rate1 hrs = float(raw_input("Enter Hours:")) rate = float(raw_input("Enter Rate:")) p = computepay(hrs,rate) print ("pay",p)