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.
In this video, we will look into 'break' and 'continue' keywords that are used in Python mainly inside loops.
Python for Absolute Beginners Playlist: • Python for Absolute Beginnners in Eng...
Connect with me on:
Github
Facebook
LinkedIn
Instagram