Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- singer_money = int(input())
- guests = 0
- money = 0
- command = input()
- while command != "The restaurant is full":
- group = int(command)
- guests += group
- if group < 5:
- money += group * 100
- else:
- money += group * 70
- command = input()
- if money >= singer_money:
- print(f'You have {guests} guests and {money - singer_money} leva left.')
- else:
- print(f'You have {guests} guests and {money} leva income, but no singer.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement