← Quiz: Python Loops: all 13 questions
Quiz: Python Loops · Question 11 of 13
What does this print? (code)
What does this print?
for n in [3, 5, 8, 9]:
if n % 2 == 0:
print("even found")
break
else:
print("no even number")
- A.even found
- B.no even number
- C.even found no even number
- D.Nothing
Answer & explanation
Correct answer: even found
break runs at 8, so the loop's else block is skipped.
Can you get the rest right without peeking?
Take the timed Quiz: Python Loops quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →