> 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...

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to