Advertisement
pacho_the_python

Untitled

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