Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- season = input()
- destination = None
- type = None
- price = None
- if budget <= 100:
- destination = "Bulgaria"
- if season == "summer": # Summer -> Camp
- price = budget * 0.3
- type = "Camp"
- elif season == "winter": # Winter -> Hotel
- price = budget * 0.70
- type = "Hotel"
- elif budget <= 1000 and budget > 100:
- destination = "Balkans"
- if season == "summer": # Summer -> Camp
- price = budget * 0.4
- type = "Camp"
- elif season == "winter": # Winter -> Hotel
- price = budget * 0.8
- type = "Hotel"
- else:
- destination = "Europe"
- price = budget * 0.9
- type = "Hotel"
- print(f"Somewhere in {destination}")
- print(f"{type} - {price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment