keep a counter in your loop. is this a homework question? On Sep 23, 2006, at 8:34 AM, kumar s wrote:
> hi, > > the reason could be that I did not quite understand > the concept of looping > > I have a list of 48 elements > > I want to create another two lists , listA and listB > > I want to loop through the list with 48 elements and > > select element with index 0,3,6,9,12 ..etc into listA > > select elements with index 2,5,8,11 etc into listB. > > > Could any one help me how can I do that > > thankyou > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor