Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type_of_fuel = input()
- fuel_in_tank = float(input())
- fuel = ""
- if not type_of_fuel == "Diesel" or type_of_fuel == "Gasoline" or type_of_fuel == "Gas":
- print(f"Invalid fuel!")
- else:
- if fuel_in_tank >= 25:
- if type_of_fuel == "Diesel":
- fuel = "diesel"
- elif type_of_fuel == "Gasoline":
- fuel = "gasoline"
- elif type_of_fuel == "Gas":
- fuel = "gas"
- print(f"You have enough {fuel}!")
- if fuel_in_tank < 25:
- if type_of_fuel == "Diesel":
- fuel = "diesel"
- elif type_of_fuel == "Gasoline":
- fuel = "gasoline"
- elif type_of_fuel == "Gas":
- fuel = "gas"
- print(f"Fill your tank with {fuel}!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement