Advertisement
bl00dt3ars

05. Journey

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