Advertisement
anton_d

08.fuel_pt1

Jan 16th, 2022 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. fuel_type = input().lower()
  2. fuel_amount = float(input())
  3.  
  4. if fuel_type == 'gas' or fuel_type == 'gasoline' or fuel_type == 'diesel':
  5.     if fuel_amount < 25:
  6.         print(f'Fill your tank with {fuel_type}!')
  7.     elif fuel_amount >= 25:
  8.         print(f'You have enough {fuel_type}.')
  9. else:
  10.     print('Invalid fuel!')
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement