title: How can I put an element of a string in a list with a certain behaviour
body: <pre><code>list1 =  ['A', 'B']
  list2 = [[(1, 1), (1, 2), (1, 3), (1, 4), (2, 1), (2, 2), (2, 3), (2, 4)]]
  </code></pre>
  
  <p>I need my output as: </p>
  
  <pre><code>[[(1, 1), (1, 2), (1, 3), (1, 4)],[(2, 1), (2, 2), (2, 3), (2, 4)]]
  </code></pre>
  
  <p>Now if I know that:</p>
  
  <ul>
  <li>length of sublist1 = 4</li>
  <li>length of sublist2 = 4</li>
  </ul>
  
  <p>then how can I put all this in a dictionary like:</p>
  
  <pre><code>{'A':length of sublist1, 'B':length of sublist2}
  </code></pre>