I find myself needing to iterate over a list made of dictionaries and I need, for every iteration, the name of which dictionary I\'m iterating on.
Here\'s an MWE (the co
You should also consider adding a "name" key to each dictionary.
The names would be:
for dc in dict_list: # Insert command that should replace ??? print 'The name of the dictionary is: ', dc['name']