eNeRGy90

Untitled

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