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