What is printed?
i = 1 while i < 4: print(i, end=" ") i += 1 else: print("Done")
निम्न code क्या print करेगा?
A. 1 2 3
B. Infinite loop
C. Done
D. 1 2 3 Done
The loop prints 1, 2 and 3. Since it terminates normally, the else block executes.
Loop 1, 2, 3 print करता है और normal termination के बाद else block "Done" print करता है।