(PCEP) Certified Entry-Level Python Programmer Practice Test
Free PCEP Using the `else` block in loops Questions and Answers
What is the output of the following code?
```python
for i in range(3):
print(i)
else:
print('Done!')
```
Select your answer
A
0 1 2
B
0 1 2 Done!
C
Done!
D
A syntax error occurs.
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49