[Tutor] Sorting more than one list

Alan Gauld alan.gauld at freenet.co.uk
Fri Apr 1 19:32:50 CEST 2005


> Yikes! Alan must have been up too late. They are not the same at
all.
> Alan's code creates a list containing *every combination* of one
> element from each source list:

Oops! Blush...

Lack of testing I'm afraid, I checked the syntax worked but not
the actual results! Thing is, I knew about zip but thought it was
deprecated so decided to try a comprehension instead.
Lesson: stick with what you know! :-)

Alan G.

PS. My posts seem to be taking a long time to make it to the digest.
I only got this at 5:30pm but posted it before 10 last night...



More information about the Tutor mailing list