[Tutor] how to compare elements of 2 lists

Chris Fuller cfuller084 at thinkingplanet.net
Wed Dec 26 03:59:13 CET 2007


I didn't think of that.  But for an arbitrary 2D list, you need the asterisk 
syntax.

On Tuesday 25 December 2007 19:00, you wrote:
> Chris Fuller wrote:
> >>>> zip(*[a,b])
> >
> > [(4, 8), (3, 6), (2, 3), (6, 3), (7, 2), (9, 7)]
>
> This can be just zip(a, b)
>
> Kent


More information about the Tutor mailing list