Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- power=int(input())
- city=input()
- standard=input()
- tax=0
- if(city=="Sofia"):
- if(power<=37):
- tax=power*1.43
- elif(38<=power<=55):
- tax=power*1.50
- else:
- tax=power*2.68
- if(city=="Vidin"):
- if(power<=37):
- tax=power*1.34
- elif(38<=power<=55):
- tax=power*1.40
- else:
- tax=power*2.54
- if(city=="Varna"):
- if(power<=37):
- tax=power*1.37
- elif(38<=power<=55):
- tax=power*1.40
- else:
- tax=power*2.57
- if(standard=="Euro 4"):
- tax=tax-tax*0.15
- elif(standard=="Euro 5"):
- tax=tax-tax*0.17
- elif(standard=="Euro 6"):
- tax=tax-tax*0.2
- print(f'{tax:.2f} lv')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement