Sichanov

fuel

Sep 22nd, 2021
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. fuel = input()
  2. quantity = int(input())
  3.  
  4. if fuel == 'Diesel' or fuel == 'Gasoline' or fuel == 'Gas':
  5.     if quantity >= 25:
  6.         print(f"You have enough {fuel.lower()}.")
  7.     else:
  8.         print(f"Fill your tank with {fuel.lower()}!")
  9. else:
  10.     print("Invalid Fuel!")
Advertisement
Add Comment
Please, Sign In to add comment