Basically break statement is considered as transfer statement. When the break statement
executes based on a condition inside a loop, then the loop is terminated.
Let’s see the following example; here loop is terminating when x==”PHP”
Like break statement, the continue statement is another transfer statement. When the continue statement executes based on a condition inside a loop, then some portion of the loop is skipped.
Using continue statement we can stop the current iteration of the loop, and continue with the next:
Let’s see an example;
for x in course: