Advertisement
veronikaaa86

05. Journey

May 22nd, 2022 (edited)
897
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         expenses = budget * 0.30
  11.         place = "Camp"
  12.     elif season == "winter":
  13.         expenses = budget * 0.70
  14.         place = "Hotel"
  15. elif budget <= 1000:
  16.     destination = "Balkans"
  17.     if season == "summer":
  18.         expenses = budget * 0.40
  19.         place = "Camp"
  20.     elif season == "winter":
  21.         expenses = budget * 0.80
  22.         place = "Hotel"
  23. else:
  24.     destination = "Europe"
  25.     expenses = budget * 0.90
  26.     place = "Hotel"
  27.  
  28.  
  29. # if season == "summer":
  30. #     if destination == "Bulgaria" or destination == "Balkans":
  31. #         place = "Camp"
  32. #     else:
  33. #         place = "Hotel"
  34. # elif season == "winter":
  35. #     place = "Hotel"
  36.  
  37. print(f"Somewhere in {destination}")
  38. print(f"{place} - {expenses:.2f}")
Advertisement
RAW Paste Data Copied
Advertisement