1 d = {'dict1': {'foo': 1, 'bar': 2}, 'dict2': {'baz': 3, 'quux': 4}}
2
3 for k1,v1 in d.iteritems(): # the basic way
4 temp = ""
5 temp+=k1
6 for k2,v2 in v1.iteritems():
7 temp = temp+" "+str(k2)+" "+str(v2)
8 print temp
9
1dataList = [{'a': 1}, {'b': 3}, {'c': 5}]
2for index in range(len(dataList)):
3 for key in dataList[index]:
4 print(dataList[index][key])
5