using python 2.5 to subtract two lists
<p>i have made a function which uses  subtraction of two values stored in two lists as follows:</p>

<pre><code>     import sys,os
     import math

     c1 = [10]
     c2 = [5]
     d1 = [8]
     d2 = [4]


      x = d2 - c2 
      y = d1 - c1
      z = x*x
      w = y*y
      answer = sqrt(z + w)
      print answer
</code></pre>

<p>My error is: TypeError: unsupported operand type(s) for -: 'list' and 'list'</p>

<p>How can I get over the error that occurs due to subtraction not being possible between two lists, i.e., in lines d2-d1 and c2-c1? Is there a built-in function in the math module similar to sqrt that i might use to subtract lists?</p>
