Python break and continue
In this video, you will learn to use break and continue statements to alter the flow of a loop.
Video: Python break and continue Statement
What is the use of break and continue in Python?
In Python, break and continue statements can alter the flow of a normal loop.
Loops iterate over a block of code until the test expression is false, but sometimes we wish to terminate the current iteration or even the whole loop without checking test expression.
The break and continue statements are used in these cases.
#ritajainlectures #pythontutorials #learnbyyourown