Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pay(hourly_wage,num_of_hours):
- if num_of_hours < 40:
- print(hourly_wage*num_of_hours)
- elif 40<= num_of_hours <= 60:
- hourly_wage = hourly_wage*1.5
- print(hourly_wage*num_of_hours)
- elif num_of_hours > 60:
- hourly_wage = hourly_wage * 2
- print(hourly_wage*num_of_hours)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement