Question Detail
Question
What is the effect of the
continue statement in a loop in Python?
Correct Answer
Option B is the correct answer.
Detailed Explanation
Page 97 explains: 'The continue statement returns the control to the beginning of the while loop. 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.'
Hint
This statement is used to skip part of the current loop iteration and move to the next one.