Created
October 5, 2020 12:07
-
-
Save ironemin1k/00591049f91c4786a10c7d9f3bdcebaa to your computer and use it in GitHub Desktop.
Coursera, Python for everybody, Charles severance, Assignment 4.6, computepay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
#Guys! just add a space last line. don't forget this assigment very sensitive. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment