ivantanchev

fuel

Mar 10th, 2022
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. fuel_type = str(input())
  2. lt = int(input())
  3. if lt < 25 and fuel_type == "Diesel":
  4.     print("Fill your tank with diesel!")
  5. elif lt < 25 and fuel_type == "Gas":
  6.     print("Fill your tank with gas!")
  7. elif lt < 25 and fuel_type == "Gasoline":
  8.     print("Fill your tank with gasoline!")
  9. elif lt >= 25 and fuel_type == "Diesel":
  10.     print("You have enough diesel.")
  11. elif lt >= 25 and fuel_type == "Gas":
  12.     print("You have enough gas.")
  13. elif lt >= 25 and fuel_type == "Gasoline":
  14.     print("You have enough gasoline.")
Advertisement
Add Comment
Please, Sign In to add comment