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