How to perform operation within an index value in a python dictionary

前端 未结 0 1146
耶瑟儿~
耶瑟儿~ 2020-12-06 15:25

I have a dict and I want to multiply the value in index position 2 by 2

val = {\'paris\': [200, 20, 200],
 \'London\': [250, 30, 120],
 \'Dubai\': [370, 15, 8         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题