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