Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- season = input()
- vacationCost = 0;
- vacationType = "Hotel";
- vacationDestination = "Bulgaria";
- budgetDeduction = 0;
- if budget <= 100:
- budgetDeduction = 0.7;
- if season == "summer":
- budgetDeduction = 0.3;
- vacationType = "Camp";
- if budget <=1000 and budget >100:
- vacationDestination = "Balkans";
- budgetDeduction = 0.8;
- if season == "summer":
- budgetDeduction = 0.4;
- vacationType = "Camp";
- elif budget >1000:
- vacationDestination = "Europe";
- budgetDeduction = 0.9;
- print(f"Somewhere in {vacationDestination}\n{vacationType} - {budget*budgetDeduction:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement