Advertisement
eNeRGy90

Untitled

Nov 4th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. budget = float(input())
  2. season = input()
  3. vacationCost = 0;
  4. vacationType = "Hotel";
  5. vacationDestination = "Bulgaria";
  6. budgetDeduction = 0;
  7.  
  8. if budget <= 100:
  9.     budgetDeduction = 0.7;
  10.     if season == "summer":
  11.         budgetDeduction = 0.3;
  12.         vacationType = "Camp";
  13. if budget <=1000  and budget >100:
  14.     vacationDestination = "Balkans";
  15.     budgetDeduction = 0.8;
  16.     if season == "summer":
  17.         budgetDeduction = 0.4;
  18.         vacationType = "Camp";
  19. elif budget >1000:
  20.     vacationDestination = "Europe";
  21.     budgetDeduction = 0.9;
  22.  
  23. print(f"Somewhere in {vacationDestination}\n{vacationType} - {budget*budgetDeduction:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement