-1
fuel = input()
liters = float(input())

if liters >= 25:
    if fuel == "diesel" or "gasolin" or "gas":
        print(f"You have enough {fuel}.")
    else:
        print("Invalid fuel!") # Why that not work

elif liters < 25:
    if fuel == "diesel" or "gasolin" or "gas":
        print(f"Fill your tank with {fuel}!")
    else:
        print("Invalid fuel!") # Why that not work

else:
    print("Invalid fuel!") # Why that not work
martineau
  • 119,623
  • 25
  • 170
  • 301

1 Answers1

-1

fuel == "diesel" or "gasolin" or "gas" shuold be changed to fuel in ("diesel", "gasolin", "gas") because at the moment the only comparison is fuel and diesel.