Advertisement
Spocoman

05. Journey

Dec 21st, 2021 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. budget = float(input())
  2. season = input()
  3.  
  4. destination = 'Europe'
  5. place = 'Hotel'
  6.  
  7. if budget <= 100:
  8.     destination = 'Bulgaria'
  9.     if season == 'summer':
  10.         place = 'Camp'
  11.         budget *= 0.3
  12.     else:
  13.         budget *= 0.7
  14. elif budget <= 1000:
  15.     destination = 'Balkans'
  16.     if season == 'summer':
  17.         place = 'Camp'
  18.         budget *= 0.4
  19.     else:
  20.         budget *= 0.8
  21. else:
  22.     budget *= 0.9
  23.  
  24. print(f'Somewhere in {destination}\n{place} - {budget:.2f}')
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement