Python: Continue Statement Example

Hi everyone, welcome back. Today, we will be going over the continue statement in Python and see how it works. The continue statement is used to stop a current iteration of a loop and continue onto the next iteration. This can be done in either a for loop or a while loop. With this introduction out of the way, let’s get into it.

Example: For Loop

--

--

Hi, I’m just someone who loves tech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store