Powering x until reach y in while loop
<p>Hi I want to make an app that will be raise X to a power until it reaches Y.</p>

<p>I have for now something like this</p>

<pre><code>x = 10 
y = 1000000
while x &lt;= y: 
    x = x**x
print(x)
</code></pre>

<p>I don't want it in function.</p>

<p>I know that probably this is simple, but I just started learning Python :)</p>

<p>This might be what you are looking for. In python you want to use the operators for math as such += , -=, *=, /= for same variable operations.</p>

<pre><code>counter = 10
while counter &lt;= 1000000:
  counter *= counter
print(counter)
</code></pre>

python