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