Advertisement
simeonshopov

Fuel tank

Sep 11th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. type=input()
  2. liters=int(input())
  3. types=("Diesel", "Gasoline", "Gas")
  4.  
  5. if type not in types:
  6.   print(f"Invalid fuel!")
  7.   quit()
  8.  
  9. if liters>=25:
  10.   print(f"You have enough {str.lower(type)}.")
  11. else:
  12.   print(f"Fill your tank with {str.lower(type)}!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement