Sobes.tech
Junior — Senior

What numbers will the loop with the break statement output

livecode

Task condition

Consider the presented code snippet and determine which numbers will be printed during its execution.

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