Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Join our platform to get reliable answers to your questions from a knowledgeable community of experts. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

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?

Sagot :

Answer:

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

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.