Suppose I have a list
['x1_0','x2_1','x3_0'] How can I split the above list into two lists such that the first list contains
['x1','x2','x3'] and the second list [0,1,0]?
i.e.
         ('x1_0')
         /    \
        /      \
       /        \
     1st list   2nd list
      'x1'          0
Feel free to use as many tools as possible. This could obviously done in a single for loop ,which I am aware of. Is there a better way to do this ?. Something which uses list comprehension ? Als
 
     
    