Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

loop through list of dictionaries python

dataList = [{'a': 1}, {'b': 3}, {'c': 5}]
for dic in dataList:
    for key in dic:
        print(dic[key])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #list #dictionaries #python
ADD COMMENT
Topic
Name
1+8 =