George_Ivanov05

Fuel tank

Feb 17th, 2021
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. fuel = input()
  2. litri = float(input())
  3.  
  4. if fuel == "Diesel" or fuel == "Gasoline" or fuel == "Gas":
  5.     if litri >= 25:
  6.         print(f"You have enough {fuel.casefold()}.")
  7.     else:
  8.         print(f"Fill your tank with {fuel.casefold()}!")
  9. else:
  10.     print("Invalid fuel!")
  11.  
Advertisement
Add Comment
Please, Sign In to add comment