Which Python keyword skips back to the beginning of a loop?
Answer Options:
- break
- continue
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Correct Answer:
Explanation: The
continue
keyword is used in loops to skip the remaining code in the current iteration and jump back to the start of the loop for the next iteration. Thebreak
keyword, in contrast, terminates the loop entirely.