Advertisement
Nenogzar

Untitled

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