Question #802

What is the output of the code snippet below?
j = 0
while j < 3:
	print(j)
	j += 1
else: 
	print(0)

Here, the else part of the code is executed when the condition of the while statement is False . (w3schools.com/python/python_while_loops.asp)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: