60 lines
391 B
Markdown
Raw Normal View History

---
id: 5e7b9f060b6c005b0e76f05c
2020-04-21 23:37:02 -05:00
title: Loops and Iterations
challengeType: 11
videoId: dLA-szNRnUY
dashedName: loops-and-iterations
---
# --question--
## --text--
What will the following code print out?:
```python
n = 0
while True:
if n == 3:
break
print(n)
n = n + 1
```
## --answers--
0
1
2
---
0
1
2
3
---
1
2
---
1
2
3
## --video-solution--
1