Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 04. Car To Go
- budget = float(input())
- season = input()
- if budget <= 100:
- car_class = "Economy class"
- if season == "Summer":
- car_type = "Cabrio"
- budget = budget * 0.35
- else:
- car_type = "Jeep"
- budget = budget * 0.65
- elif budget <= 500:
- car_class = "Compact class"
- if season == "Summer":
- car_type = "Cabrio"
- budget = budget * 0.45
- else:
- car_type = "Jeep"
- budget = budget * 0.80
- else:
- car_class = "Luxury class"
- car_type = "Jeep"
- budget = budget * 0.90
- print(f"{car_class}")
- print(f"{car_type} - {budget:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment