Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fuel_type = input().lower()
- fuel_amount = float(input())
- if fuel_type == 'gas' or fuel_type == 'gasoline' or fuel_type == 'diesel':
- if fuel_amount < 25:
- print(f'Fill your tank with {fuel_type}!')
- elif fuel_amount >= 25:
- print(f'You have enough {fuel_type}.')
- else:
- print('Invalid fuel!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement