1 Réponse
+ 2
If you have a for loop, then everything you want to do in the for loop needs to be indented. If you don't want something done N amount of times, "step out of the loop" meaning those next lines you write are not indented under the loop.
for n in whatever:
do this thing # inside loop
do this too # inside loop
do this after loop # outside loop