Advertisement
Guest User

Code1

a guest
Oct 13th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. def pay(hourly_wage,num_of_hours):
  2. if num_of_hours < 40:
  3. print(hourly_wage*num_of_hours)
  4. elif 40<= num_of_hours <= 60:
  5. hourly_wage = hourly_wage*1.5
  6. print(hourly_wage*num_of_hours)
  7. elif num_of_hours > 60:
  8. hourly_wage = hourly_wage * 2
  9. print(hourly_wage*num_of_hours)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement