title: Manipulating a list of lists in python
body: <p>I am still quite new to python so any help would be much appreciated.<br>
  I had two lists of tuples consisting of int, float and int, float float where the intergers are the same in both lists.<br>
  I have since merged these two lists into a list of lists using<br>
          z = List1<br>
          L = List2</p>
  
  <pre><code>z = [[r[col] for r in z] for col in range(len(z[0]))]
  L = [[r[col] for r in L] for col in range(len(L[0]))]  
  
  final_t_matrix = []
  for i in (z + L):
      if i not in final_t_matrix:
          final_t_matrix.append(i)
  Wind = [[r[col] for r in final_t_matrix] for col in range(len(final_t_matrix[0]))]  
  </code></pre>
  
  <p>I now have a list of lists which if I run a print statement provides this (output this is only a partial output).</p>
  
  <pre><code>[1, -9.820569, -27.857089, 52.5], [2, -13.876759, -28.511313, 52.5], [3, -10.505768, -27.967606, 52.5], [4, -14.367771, -28.590508, 52.5], [5, -10.250126, -27.926373, 52.5]
  </code></pre>
  
  <p>I now want to manipulate this data by selecting the second and third value and taking the resultant and outputting this in a list.</p>
  
  <p>my code is currently this but I seem to be missing something.  The statement needs to run until a none value is reached and then stop as the list can be over 500 data points long</p>
  
  <pre><code>force = [] 
  i = 0
  if Wind[i][3] == 30.0:
      force.append[i] = (((Wind[i][1])**2 + (Wind[i][2])**2)**0.5)
  else:
      i += 1
  
  print(force)
  </code></pre>
  
  <p>*I would like to keep the resultant in a list so that I can recall the resultant that corresponds to any integer.</p>