Skip to content

Instantly share code, notes, and snippets.

@edsu edsu/
Created Sep 22, 2019

What would you like to do?
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!")
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
You can’t perform that action at this time.