What is the output of the following Python program?
i = 0
while i < 3:
i += 1
else:
print("done", i)
j = 0
while j < 3:
j += 1
if j == 2:
break
else:
print("done", j)
print("end", j)
The first loop ends because its condition becomes false, so else runs. The second ends with break, so its else is skipped.