Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 05. Vacation
- budget = float(input())
- season = input()
- if budget <= 1000:
- accommodation = "Camp"
- if season == "Summer":
- price = 65 / 100 * budget
- elif season == "Winter":
- price = 45 / 100 * budget
- elif 1000 < budget <= 3000:
- accommodation = "Hut"
- if season == "Summer":
- price = 80 / 100 * budget
- elif season == "Winter":
- price = 60 / 100 * budget
- elif budget > 3000:
- accommodation = "Hotel"
- price = 90 / 100 * budget
- if season == "Summer":
- location = "Alaska"
- elif season == "Winter":
- location = "Morocco"
- print(f"{location} - {accommodation} - {price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment