Post

Python Coding
Python Coding@clcoding·
What is the output of following Python Code
Python Coding tweet media
English
18
10
90
17.3K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@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
0
0
0
754
Prem Prakash
Prem Prakash@4EverPrem·
@clcoding 0 1 Only first loop is executed. Second loop has the start and end same, so is not executed.
English
0
0
0
318
Ayush Katiyar
Ayush Katiyar@Katiyar1301·
@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
0
0
0
301
Paylaş