I'm trying to write a loop that raises the mathematical constant of pi to its powers until the result is greater than 10000
<pre><code> math.pi = 3.14
 while math.pi &gt; 10000
     print math.pi
</code></pre>

<p>I'm trying to write a loop that raises the mathematical constant of pi to its powers until the result is greater than 10000</p>

<p>It looks like you forgot to actually assign pi to a variable and increase it's value</p>

<pre><code>p = math.pi
while p &lt; 10000: 
    p *= math.pi
</code></pre>

<p>or using a bit of math you can get the same result:</p>

<pre><code>p = math.pi ** (math.ceil(math.log(10000) / math.log(math.pi)))
</code></pre>

python