Merging two lists as a dictionary

Chris Frost chris at frostnet.advicom.net
Tue Jul 20 22:19:46 EDT 1999


I have two lists and would like to merge them into a dictionary, with one
list forming the keywords and the other the values in the dictionary. How could
this be done? "map(None, keyword_list, value_list)" looked great, but it
returns a list of pairs (I'd like to be able to specify values according to
keywords...).

thanks for any pointers!
-- 
Chris Frost  |  <http://www.frostnet.advicom.net/chris/>
-------------+------------------------------------------
Public PGP Key:
   Email chris at frostnet.advicom.net with the subject "retrieve pgp key"
   or visit <http://www.frostnet.advicom.net/chris/about/pgp_key.phtml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 256 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/19990721/a669fc0e/attachment.sig>


More information about the Python-list mailing list