109k views
3 votes
Your program has a loop. You want to pass control back to the start of a loop if a certain condition is met. What statement will keep you in the loop but skip the rest of the code in the loop?

User Sjkp
by
3.2k points

1 Answer

9 votes

Answer:

The continue statement in Python returns the control to the beginning of the while loop.

Step-by-step explanation:

The continue statement rejects all the remaining statements in the current iteration of the loop and moves the control back to the top of the loop. The continue statement can be used in both while and for loops.