Sichanov

journey

Jan 30th, 2021
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1. budget = float(input())
  2. season = input()
  3. camp_price = 0
  4. hotel_price = 0
  5. if budget <= 100:
  6.     print('Somewhere in Bulgaria')
  7.     if season == 'summer':
  8.         camp_price = budget - budget * 0.7
  9.         print(f'Camp - {camp_price:.2f}')
  10.     else:
  11.         hotel_price = budget - budget * 0.3
  12.         print(f'Hotel - {hotel_price:.2f}')
  13.  
  14. elif budget <= 1000:
  15.     print('Somewhere in Balkans')
  16.     if season == 'summer':
  17.         camp_price = budget - budget * 0.6
  18.         print(f'Camp - {camp_price:.2f}')
  19.     else:
  20.         hotel_price = budget - budget * 0.2
  21.         print(f'Hotel - {hotel_price:.2f}')
  22.  
  23. elif budget > 1000:
  24.     print('Somewhere in Europe')
  25.     hotel_price = budget - budget * 0.1
  26.     print(f'Hotel - {hotel_price:.2f}')
  27.  
Advertisement
Add Comment
Please, Sign In to add comment