Advertisement
Guest User

Hair Salon

a guest
Jul 19th, 2021
1,739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. daily_goal = int(input())
  2. money_count = 0
  3. while money_count < daily_goal:
  4. command = input()
  5. if command != "closed":
  6. type = input()
  7. if command == "haircut":
  8. if type == "mens":
  9. money_count += 15
  10. if type == "ladies":
  11. money_count += 20
  12. if type == "kids":
  13. money_count += 10
  14. if command == "color":
  15. if type == "touch up":
  16. money_count += 20
  17. if type == "full color":
  18. money_count += 30
  19. if command == "closed":
  20. break
  21. if money_count >= daily_goal:
  22. print("You have reached your target for the day!")
  23. else:
  24. diff = abs(daily_goal - money_count)
  25. print(f"Target not reached! You need {diff}lv. more.")
  26. print(f"Earned money: {money_count}lv.")
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement