🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

निम्नलिखित कथनों के बाद आउटपुट क्या होगा?

What will be the output after the following statements?

for i in range(1,6):
    print(i, end='')
    if i == 3:
        break 
A)
B)
C)
D)

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.

Latest Updates