Hi,

>>> l
[{'last': 'Bar', 'first': 'Foo'}, {'last': 'Bar', 'first': 'Foo'}, {'last': 'Bar', 'first': 'Foo'}, {'last': 'Bar', 'first': 'Foo'}]


This is how I imagine it:

for i in l:
    for j in l[i]:
        for k in l[i][j]:
            print k.get('first')
            print k.get('last')

Is there a short and sweet way of doing this (that actually works).

Luis.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to