Files
freeCodeCamp/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/loops-and-iterations.md
Oliver Eyton-Williams 0bd52f8bd1 Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

59 lines
358 B
Markdown

---
id: 5e7b9f060b6c005b0e76f05c
title: Loops and Iterations
challengeType: 11
videoId: dLA-szNRnUY
---
# --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