title: Python: string to a list of lists
body: <p>I'm new to python and confused about converting a string to a list. I'm unsure how to create a list within a list to accomplish the following: </p>
  
  <p>Ex. </p>
  
  <pre><code>string = '2,4,6,8|10,12,14,16|18,20,22,24' 
  </code></pre>
  
  <p>I'm trying to use split() to create a data structure, my_data, so that when I input</p>
  
  <pre><code>print my_data[1][2] #it should return 14
  </code></pre>
  
  <p>Stuck: 
  This is what I did at first: </p>
  
  <pre><code>new_list = string.split('|')  #['2,4,6,8', '10,12,14,16,', '18,20,22,24']
  </code></pre>
  
  <p>And I know that you can't split a list so I <code>split()</code> the string first but I don't know how to convert the strings within the new list into a list in order to me to get the right output. </p>