LogiQuest
Back to Control Flow
12

What is the output of the following code?

n = 0
while True:
    n += 1
    if n >= 4:
        break
print(n)
Easy

Discussion (0)

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

Log in to join the discussion.