Advertisement
veronikaaa86

05. Journey

Sep 25th, 2022
1,178
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 1 0
  1. budget = float(input())
  2. season = input()
  3.  
  4. destination = ""
  5. place = ""
  6. expenses = 0
  7. if budget <= 100:
  8.     destination = "Bulgaria"
  9.     if season == "summer":
  10.         place = "Camp"
  11.         expenses = budget * 0.30
  12.     else:
  13.         place = "Hotel"
  14.         expenses = budget * 0.70
  15. elif budget <= 1000:
  16.     destination = "Balkans"
  17.     if season == "summer":
  18.         place = "Camp"
  19.         expenses = budget * 0.40
  20.     else:
  21.         place = "Hotel"
  22.         expenses = budget * 0.80
  23. elif budget > 1000:
  24.     destination = "Europe"
  25.     place = "Hotel"
  26.     expenses = budget * 0.90
  27.  
  28. print(f"Somewhere in {destination}")
  29. print(f"{place} - {expenses:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement