Step-by-step explanation:
range(3) → gives numbers 0, 1, 2.
-
The loop runs three times — once for each i.
-
Inside the loop:
-
The first statement is continue.
continue immediately skips the rest of the loop for that iteration.
-
So print(i) is never reached or executed.
-
Output:
(no output)💡 Key point:
When Python hits continue, it jumps straight to the next iteration of the loop — skipping all remaining code below it for that cycle.
So even though the loop runs 3 times, print(i) never runs at all.


0 Comments:
Post a Comment