02 February 2012 5 3K Report

Hi,

The data i hav is something like this, x is a list

x[0] = ['1','2345','96','2456','3','3456','94','3478']

x[1] = ['3','3456','94','3478',1','4345','96','4456']

x[-1] = ['4','223','91','445']

similarly upto 24 elements in list x. (no of elements in x[0] to x[-1] are not same)

I need to write a loop to take out alternate values in all the list, like for x[0] ['1','96'] ['2345'2456'] ['3','94'] and ['3456','3478']and store in different variables . Similatly the loop should return alternate values for all from x[0] to x[-1].

Someone please help me...

Similar questions and discussions