Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list of dictionaries

lst = [{'a':0,'b':1,'c':2},
       {'d':3,'c':4,'b':5},
       {'a':5,'d':6,'e':1}]

print(lst[1])
print(lst[1]['c'])
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #python #list #dictionaries
ADD COMMENT
Topic
Name
3+2 =