Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type=input()
- fuel=float(input())
- club=input()
- if type=="Gas" and club=="Yes":
- price=fuel*0.85
- elif type=="Gas" and club=="No":
- price=fuel*0.93
- if type=="Gasoline" and club=="Yes":
- price=fuel*2.04
- elif type=="Gasoline" and club=="No":
- price=fuel*2.22
- if type=="Diesel" and club=="Yes":
- price=fuel*2.21
- elif type=="Diesel" and club=="No":
- price=fuel*2.33
- if 20<fuel<=25:
- price*=0.92
- elif fuel>25:
- price*=0.90
- else:
- price=price
- print(f"{price:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement