Skip to content

Instantly share code, notes, and snippets.

@edsu
Created September 22, 2019 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsu/322eb6b4c4aab0909687098d2393bbe4 to your computer and use it in GitHub Desktop.
Save edsu/322eb6b4c4aab0909687098d2393bbe4 to your computer and use it in GitHub Desktop.
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