title: How to do Math Functions on Lists within a List
body: <p>I'm very new to python (using python3) and I'm trying to add numbers from one list to another list. The only problem is that the second list is a list of lists. For example:</p>
  
  <pre><code>[[1, 2, 3], [4, 5, 6]]
  </code></pre>
  
  <p>What I want is to, say, add 1 to each item in the first list and 2 to each item in the second, returning something like this:</p>
  
  <pre><code>[[2, 3, 4], [6, 7, 8]]
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>original_lst = [[1, 2, 3], [4, 5, 6]]
  trasposition_lst = [1, 2]
  new_lst = [x+y for x,y in zip(original_lst, transposition_ls)]
  print(new_lst)
  </code></pre>
  
  <p>When I do this, I get an error </p>
  
  <blockquote>
    <p>can only concatenate list (not "int") to list</p>
  </blockquote>
  
  <p>This leads me to believe that I can't operate in this way on the lists as long as they are nested within another list. I want to do this operation without flattening the nested list. Is there a solution?</p>