निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?
for i in range(1,6):
print(i, end='')
if i == 3:
break A
1 2
B
1 2 3
C
1 2 3 4
D
1 2 3 4 5
Explanation
The code prints numbers from 1 to 3. When i == 3, the break statement stops the loop. So, the output is:
1 2 3.
Correct Answer: B) 1 2 3