-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5_Journey.py
More file actions
35 lines (30 loc) · 921 Bytes
/
Copy path5_Journey.py
File metadata and controls
35 lines (30 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
budget = float(input())
season = input()
booking_place = " "
type_accommodation = " "
money_spend = 0.0
if budget <= 100:
if season == "summer":
money_spend = 0.30
type_accommodation = "Camp"
booking_place = "Bulgaria"
elif season == "winter":
money_spend = 0.70
type_accommodation = "Hotel"
booking_place = "Bulgaria"
elif 100 < budget <= 1000:
if season == "summer":
money_spend = 0.40
type_accommodation = "Camp"
booking_place = "Balkans"
elif season == "winter":
money_spend = 0.80
type_accommodation = "Hotel"
booking_place = "Balkans"
elif budget > 1000:
money_spend = 0.90
type_accommodation = "Hotel"
booking_place = "Europe"
final_cost = money_spend * budget
print(f"Somewhere in {booking_place}")
print(f"{type_accommodation} - {final_cost:.2f}")