list/tuple to dict...

Pierre Fortin pfortin at pfortin.com
Thu Sep 16 10:14:13 EDT 2004


On Thu, 16 Sep 2004 12:47:16 +0200 Diez wrote:

> > What does zip() have to do with this situation...?
> 
> Uhm - its needed? 
> 
> It creates a list of pairs from the two argument lists, and dict() takes
> a list of pairs of (key, value) to form a dictionary. 

Thanks.... I see what was intended now...  the example needed to work on a
split string, not the one I'd provided...   simply running his example
failed and I should have read the zip() docs and debugged it...



More information about the Python-list mailing list