BbJLeB

06. Journey

May 7th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. budget = float(input())
  2. season = input()
  3. destination = None
  4. type = None
  5. price = None
  6. if budget <= 100:
  7.     destination = "Bulgaria"
  8.     if season == "summer": # Summer -> Camp
  9.         price = budget * 0.3
  10.         type = "Camp"
  11.     elif season == "winter":  # Winter -> Hotel
  12.         price = budget * 0.70
  13.         type = "Hotel"
  14.  
  15. elif budget <= 1000 and budget > 100:
  16.     destination = "Balkans"
  17.     if season == "summer":  # Summer -> Camp
  18.         price = budget * 0.4
  19.         type = "Camp"
  20.     elif season == "winter":  # Winter -> Hotel
  21.         price = budget * 0.8
  22.         type = "Hotel"
  23. else:
  24.     destination = "Europe"
  25.     price = budget * 0.9
  26.     type = "Hotel"
  27. print(f"Somewhere in {destination}")
  28. print(f"{type} - {price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment