Q1.Consider the following Python code. How many lines will be printed when this code is executed?
```
for i in range(1, 5):
for j in range(1, 5):
if j == 3:
break
if i == 2:
continue
print(i, j)
```
Save
Check
Details
Q1
26 Oct 2025
Q1.Consider the following Python code. How many lines will be printed when this code is executed?
```
for i in range(1, 5):
for j in range(1, 5):
if j == 3:
break
if i == 2:
continue
print(i, j)
```