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