Advertisement
veronikaaa86

05. Journey

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