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>Do you want something like this? I tried to provide an example with as similar format to what you provided. </p>

<pre><code>import math

exponent = 0
num = math.pi

while num ** exponent &lt; 10000:
    print num ** exponent
    exponent += 1
</code></pre>

<p>If we take a look at the code that you posted, you're never changing the value of pi. The loop will never start, because the value of pi will never be greater than 10,000. Also, your condition should be <code>while num ** exponent &lt; 10000:</code> because you want the while loop to execute while the result is less than 10,000. When the value is greater than 10,000, the loop will stop and no longer execute.</p>

python