question about list of dictionary items

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


 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list