Advertisement
SpasSpasov

Untitled

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