Building and accessing an array of dictionaries

Sam lightaiyee at gmail.com
Thu Jan 16 04:41:25 EST 2014


I would like to build an array of dictionaries. Most of the dictionary example on the net are for single dictionary.

dict = {'a':'a','b':'b','c':'c'}
dict2 = {'a':'a','b':'b','c':'c'}
dict3 = {'a':'a','b':'b','c':'c'}

arr = (dict,dict2,dict3)

What is the syntax to access the value of dict3->'a'?

Thank you.




More information about the Python-list mailing list