LogiQuest
Back to Control Flow
10

What is the output of the following code?

count = 0
for i in range(3):
    for j in range(3):
        if i != j:
            count += 1
print(count)
Medium

Discussion (0)

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

Log in to join the discussion.