looping with while statement
<p>I've been trying to learn python recently.</p>

<p>One thing i've seen tutorials do is create loops by making a while statement with a variable that goes up at the end of each statement</p>

<p>example:</p>

<pre><code>loop_end = 0
while loop_end &lt;= 5:
    &lt;do program&gt;
    loop_end = loop_end + 1
</code></pre>

<p>This feels odd and a bit ugly.
Is there any other way to achieve this effect?</p>
