Created
September 22, 2019 17:45
-
-
Save edsu/322eb6b4c4aab0909687098d2393bbe4 to your computer and use it in GitHub Desktop.
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
hours_worked = float(input("Enter hours worked: ")) | |
hourly_rate = float(input("Enter hourly rate: ")) | |
def salary(hours_worked, hourly_rate): | |
if hourly_rate < 15.0: | |
print("I'm Sorry " + str(hourly_rate) + " is lower than the minimum wage!") | |
else: | |
pay = hours_worked * hourly_rate | |
print("Pay: " + str(pay)) | |
salary(hours_worked, hourly_rate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment