Sobes.tech
Intern — Middle

What will be the result of a loop with a break statement

livecode

Task condition

Analyze the following code snippet and indicate which numbers will be displayed on the screen.

for idx in range(5):
    if idx == 0:
        break
    print(idx)