Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 08. Fuel Tank
- fuel_type = input() # "Diesel", "Gasoline" or "Gas"
- liters_fuel = int(input()) # if liters > 25 is enough
- if fuel_type == "Diesel" or fuel_type == "Gasoline" or fuel_type == "Gas":
- if liters_fuel >= 25:
- print(f"You have enough {fuel_type.lower()}.")
- elif liters_fuel < 25:
- print(f"Fill your tank with {fuel_type.lower()}!")
- else:
- print("Invalid fuel!")
Advertisement
Add Comment
Please, Sign In to add comment