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