question about list of dictionary items

Joe Wong joewong at mango.cc
Thu Jul 22 08:10:50 CEST 2004


HI,

 I have a list contains dictionary items, for example:

l = [{1:'apple'}, {2:'Orange'}, {133:'lemon'}]

What is the quickest way to extact all the 'keys' from the list?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040722/537d42e3/attachment.html>


More information about the Python-list mailing list