Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- target = int(input())
- income = 0
- command = input()
- while command != "closed":
- type = input()
- if command == "haircut":
- if type == "mens":
- income += 15
- elif type == "ladies":
- income += 20
- else:
- income += 10
- else:
- if type == "touch up":
- income += 20
- else:
- income += 30
- if income >= target:
- print("You have reached your target for the day!")
- break
- command = input()
- else:
- print(f"Target not reached! You need {target - income}lv. more.")
- print(f"Earned money: {income}lv.")
Add Comment
Please, Sign In to add comment