Skip to content

Instantly share code, notes, and snippets.

@edsu edsu/embarb-1.py
Created Sep 22, 2019

Embed
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!")
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
You can’t perform that action at this time.