Breaking loops_

I know that python has a code called “break”. It can stop playing a loop:

For index in range(5):

In other words, instead of repeating 5 times the loop, it “break” the loop.

It’s a good idea for “very heavy codes”. I am creating a project and my robot has to run the loop 84 times even if it found the answer long before!


9 posts were merged into an existing topic: Break and Continue Blocks + Naming Control Flow Statements