Skip to content
Advertisement

assign key as list index+1 to list of tuples [closed]

I have a list of tuples and I want to convert them to dictionary but the key should be tuples index in the list+1

So if my list of tuple is

JavaScript

I want to create a dictionary of the list of tuples having key as tuples index in the list + 1. Similar to

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement