Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type_of_fuel = input()
- amount_of_fuel = float(input())
- club_card = input()
- if club_card == "Yes":
- gas = 0.93 - 0.08
- gasoline = 2.22 - 0.18
- diesel = 2.33 - 0.12
- else:
- gas = 0.93
- gasoline = 2.22
- diesel = 2.33
- if type_of_fuel == "Gas":
- total_price = gas * amount_of_fuel
- elif type_of_fuel == "Gasoline":
- total_price = gasoline * amount_of_fuel
- else:
- total_price = diesel * amount_of_fuel
- if amount_of_fuel > 25:
- total_price *= 0.9
- elif 20 <= amount_of_fuel <= 25:
- total_price *= 0.92
- print(f"{total_price:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement