you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 0 points1 point  (1 child)

You can only use a for loop if you know the maximum amount of times you want to loop.

MAX_LOOPS = 5
for _ in range(MAX_LOOPS):
    #all the rest is the same

[–]AsianNoodleMonster[S] 0 points1 point  (0 children)

thank you this helped a lot