How can i use e and power operation in python 2.7
<p>How can i write <code>x.append(1-e^(-value1^2/2*value2^2))</code> in python 2.7?</p>

<p>I don't know how to use power operator and e.</p>

<p>Python's power operator is <code>**</code> and Euler's number is <code>math.e</code>, so:</p>

<pre><code> from math import e
 x.append(1-e**(-value1**2/2*value2**2))
</code></pre>

python math equation exp