python not understanding simple math question : <p>I am making mortgage calculator, I have provided information for variables p, i, n, but get error in the equation.</p>

<pre><code>p[i(1 + i) ^ n] / [(1 + i) ^ n – 1]
</code></pre>
