Advertisement
Spocoman

05. Vacation

Dec 22nd, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. budget = float(input())
  2. season = input()
  3. location = ''
  4. place = ''
  5.  
  6. if season == 'Summer':
  7.     location = 'Alaska'
  8. else:
  9.     location = 'Morocco'
  10.  
  11. if 0 < budget <= 1000:
  12.     place = 'Camp'
  13.     if season == 'Summer':
  14.         budget *= 0.65
  15.     else:
  16.         budget *= 0.45
  17.  
  18. elif 1000 < budget <= 3000:
  19.     place = 'Hut'
  20.     if season == 'Summer':
  21.         budget *= 0.8
  22.     else:
  23.         budget *= 0.6
  24. else:
  25.     place = 'Hotel'
  26.     budget *= 0.9
  27.  
  28. print(f'{location} - {place} - {budget:.2f}')
  29.  
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement