Python: iteration, break and continue


/ Published in: Python
Save to your folder(s)

The Python language provides break to stop execution and break out of the current loop. Python also includes continue to stop execution of the current iteration and start the next iteration of the current loop. The following example shows the use of the break and continue statements:

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.