[Tutor] looping problem

Bob Gailer bgailer at alum.rpi.edu
Sat Sep 23 19:11:12 CEST 2006


kumar s wrote:
> [snip]
> so I want to select 0,3,6,9 elements into listA
> and 2,5,8,11 and so on elements into listB
>
>   
Here's a hint:

for j in range(0, len(biglist), 3): # this will set j = 0, 3, 6, etc.

-- 
Bob Gailer
510-978-4454



More information about the Tutor mailing list