Answers for "for every dict in list"

-1

for every dict in list

dataList = [{'a': 1}, {'b': 3}, {'c': 5}]
for index in range(len(dataList)):
    for key in dataList[index]:
        print(dataList[index][key])
Posted by: Guest on January-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language