Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- category = input()
- people = int(input())
- if people <= 4:
- budget *= 0.25
- elif people <= 9:
- budget *= 0.4
- elif people <= 24:
- budget *= 0.5
- elif people < 50:
- budget *= 0.6
- else:
- budget *= 0.75
- if category == 'VIP':
- budget -= 499.99 * people
- else:
- budget -= 249.99 * people
- if budget >= 0:
- print(f'Yes! You have {budget:.2f} leva left.')
- else:
- print(f'Not enough money! You need {abs(budget):.2f} leva.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement