Ddimov90

journey_05_02

Sep 30th, 2025
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | Source Code | 0 0
  1. budget = float(input())
  2. season = input()
  3.  
  4. type_of_stay = ""
  5. place_of_stay = ""
  6. region = ""
  7. total = 0
  8.  
  9. if budget > 1000:
  10.     region = "Europe"
  11.     place_of_stay = "Hotel"
  12.     total = budget * 0.9
  13. else:
  14.     if season == "summer":
  15.         place_of_stay = "Camp"
  16.         if budget <= 100:
  17.             region = "Bulgaria"
  18.             total = budget * 0.3
  19.         else:
  20.             region = "Balkans"
  21.             total = budget * 0.4
  22.  
  23.     else:
  24.         place_of_stay = "Hotel"
  25.         if budget <= 100:
  26.             region = "Bulgaria"
  27.             total = budget * 0.7
  28.         else:
  29.             region = "Balkans"
  30.             total = budget * 0.8
  31.  
  32. print(f"Somewhere in {region}")
  33. print(f"{place_of_stay} - {total:.2f}")
  34.  
  35.  
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment