QuestionQ268

VerifiedControl Flow – Conditional Blocks and Loops

Which line should be placed in the following code snippet so that it matches the expected output?

Expected output:

Question Image

Code:

Question Image

Explanation

In a Python loop, continue skips the remaining statements in the current iteration and proceeds to the next iteration. When c == 3, it prevents print(c, end="") from running, while allowing 4 and 5 to be printed.

Community Discussion

No comments yet. Be the first to start the discussion!