Merging two lists of data (Pythonic way)

Steven D'Aprano steve at REMOVETHIScyber.com.au
Thu Feb 16 16:49:42 EST 2006


On Thu, 16 Feb 2006 12:30:47 -0800, SMB wrote:

> I know I could do this with two for loops, but am looking for a better 
> solution maybe involving list comprehension.

What's wrong with for loops? Why do you think they are unPythonic?


-- 
Steven.




More information about the Python-list mailing list