Is there an easier way to express this list slicing?

John Henry john106henry at hotmail.com
Thu Nov 30 15:38:56 EST 2006


Thomas Ploch wrote:
>
> John Henry schrieb:
> > > Thomas Ploch wrote:
> > > <snip>
> >> >> I had a little bit of fun while writing this:
> >> >>
> >> >> itemList = (a,b,c1,c2,c3,d1,d2,d3,d4,d5) and
> >> >> itemList2 = (a1,a2,a3,b,c,d1,d2,d3,d4,d5) the next time.
> >> >>
> > >
> > > Huh?  What's a,b,....d5?
> > >
>
> Can be any object, as you had in your example in your mail:
> 

Oh, sorry.




More information about the Python-list mailing list