Assume I have a dict:
firstdict = {"somelist":[]}
I have another dict:
seconddict = {"attribute1": "value1", "attribute2": "value2"}
After appending the dictionary
firstdict["somelist"].append(seconddict)
I want to print the "attribute1" value. Though the following statement is not working:
print firstdict["somelist"][0].attribute1
How to I print/access the value of attribute1?