Post

@clcoding Answer: 0 1 (on separate lines)
The outer loop run twice, with values of i being 0 and 1 in the iterations.
The inner loop doesn't run because range(0, 0) is an empty range.
So outer loop prints 0 1. Inner loop prints nothing.
Detailed Thread:
x.com/CodingComputin…
English

@clcoding 0
1
Only first loop is executed. Second loop has the start and end same, so is not executed.
English

@clcoding This code has a nested loop. The outer loop runs twice, printing numbers 0 and 1. The inner loop, however, doesn’t run at all because it’s set to range from 0 to 0. So, you'll only see 0 and 1 printed, with no output from the inner loop.
English













