LogiQuest
Back to Control Flow
8

What is the output of the following code?

for i in range(3):
    if i == 1:
        break
else:
    print('done')
print(i)
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.