How many lines does the following code print?
The loop increments x to 1 on its first iteration. Because 1 < 100, it executes one print statement and immediately exits the loop with break, so exactly one line is printed.
x
1 < 100
print
break
Community Discussion