Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fuel_type = input()
- fuel_liters = int(input())
- if fuel_type == "Diesel":
- if fuel_liters >= 25:
- print("You have enough diesel.")
- else:
- print("Fill your tank with diesel!")
- elif fuel_type == "Gasoline":
- if fuel_liters >= 25:
- print("You have enough gasoline.")
- else:
- print("Fill your tank with gasoline!")
- elif fuel_type == "Gas":
- if fuel_liters >= 25:
- print("You have enough gas.")
- else:
- print("Fill your tank with gas!")
- else:
- print("Invalid fuel!")
Advertisement
Advertisement