(PCEP) Certified Entry-Level Python Programmer Practice Test
(PCEP) Certified Entry-Level Python Programmer 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