0 votes
in Python by
When should you use the “break” in Python Language?

1 Answer

0 votes
by

Python Language provides a break statement to exit from a loop. Whenever the break hits in the code, the control of the program immediately exits from the body of the loop.

The break statement in a nested loop causes the control to exit from the inner iterative block.

Related questions

0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
0 votes
asked Jan 18, 2021 in Python by SakshiSharma
...