<reponame>peasfrog/coursera<filename>Python/Programming 4 Everyone 1-5/week6/4.6.py
def computepay(h,r):
    if h > 40:
    	return ((h-40) * (r * 1.5)) + (40*r)
    else:
    	return h*r

hrs = raw_input("Enter Hours:")
rate = raw_input("Enter pay rate: ")

hrs = float(hrs)
rate = float(rate)

print computepay(hrs, rate)
4 Everyone 1-5/week6/4.6.py
def computepay(h,r):
    if h > 40:
    	return ((h-40) * (r * 1.5)) + (40*r)
    else:
    	return h*r

hrs = raw_input("Enter Hours:")
rate = raw_input("Enter pay rate: ")

hrs = float(hrs)
rate = float(rate)

print computepay(hrs, rate)