title: Error in multiplying each element in list, inside 2D array
body: <p>Quick question about multiplying elements inside a list:</p>
  
  <p>I have a list with 5 lists inside a list, containing two float values each.</p>
  
  <pre><code>str_list = [[-8.0, 0.070879], [-67.0, 0.263145], [92.0, 0.034718], [19.0, 0.231517], [35.0, 0.399741]]
  </code></pre>
  
  <p>Now, I am trying to multiply each of these elements by themselves, and then print them into a list containing the 5 variables that have been multiplied:</p>
  
  <pre><code>num_list = [-0.567032, -17.630715, 3.194056, 4.398823, 13.990935]
  </code></pre>
  
  <p>Here is the code that I am using, but the output is not the one desired above.</p>
  
  <pre><code>num_list = []
  for pair in str_list:
          for x in pair:
              product = 1
              product = product * x
              num_list.append(x)
  </code></pre>
  
  <p>The result I am getting is </p>
  
  <pre><code>[0.070879, 0.263145, 0.034718, 0.231517, 0.399741]
  </code></pre>
  
  <p>which means that the program is only taking the second half of my lists and not actually multiplying anything.</p>
  
  <p>It seems like a very basic error that I cannot see. Thank you for the help.</p>