0 votes
in Python Flask by
Why do we need break and continue in Python?

1 Answer

0 votes
by

Both break and continue are statements that control flow in Python loops. break stops the current loop from executing further and transfers the control to the next block. continue jumps to the next iteration of the loop without exhausting it.

Related questions

0 votes
asked Sep 24, 2021 in Python by Robin
0 votes
asked Dec 23, 2022 in Python Flask by john ganales
...