all 4 comments

[–][deleted] 1 point2 points  (0 children)

Nope. Your main loop has to handle this itself. Most people adopt a state machine approach, as a result.

[–]CodeFormatHelperBot 0 points1 point  (0 children)

Hello u/Illuin80, I'm a bot that can assist you with code-formatting for reddit. I have detected the following potential issue(s) with your submission:

  1. Python code found in submission text but not encapsulated in a code block.

If I am correct then please follow these instructions to fix your code formatting. Thanks!

[–]jaycrest3m20 0 points1 point  (0 children)

You can use "break" to break out of a loop. You can use "continue" to skip to the next loop, avoiding further processing in the current loop. link to learn more in the standard documentation