title: Apply function to each element in 3 lists of tuples to get 1 resultant list python3
body: <p>I am trying to calculate a resultant acceleration from x, y, z accelerations. I have written a function that does this when manually inputting the x,y,z coordinates.</p>
  
  <pre><code>def Euclidean_norm(x,y,z):
      total = (x ** 2) + (y ** 2) + (z ** 2)
      resultant = math.sqrt(total)
      return resultant
  </code></pre>
  
  <p>My problem is that I want to use this function to iterate over 3 lists, and produce a new list with only the resultant acceleration. </p>
  
  <pre><code>x_list = [(9.6,), (4.9,), (8.7,), (9.....]
  y_list = [(0.6,), (2.6,), (4.6,), (2.....]
  z_list = [(5.2,), (7.2,), (5.8,), (7.....]
  </code></pre>
  
  <p>I have tried to use the map function</p>
  
  <pre><code>print(map(Euclidean_norm(a,b,c)))
  </code></pre>
  
  <p>However this gave an error</p>
  
  <pre><code>TypeError: unsupported operand type(s) for ** or pow(): 'list' and 'int'
  </code></pre>
  
  <p>Part of the problem is that the values for <code>x</code>, <code>y</code> and <code>z</code> I get from the database come out as tuples instead of plain numbers.</p>