I've been trying to learn python recently.
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
example:
loop_end = 0
while loop_end <= 5:
<do program>
loop_end = loop_end + 1
This feels odd and a bit ugly. Is there any other way to achieve this effect?
loop_end += 1if you still want while loop.