Files
freeCodeCamp/curriculum/challenges/italian/07-scientific-computing-with-python/python-for-everybody/loops-and-iterations.md
Nicholas Carrigan (he/him) f25e3e69f8 feat: enable new langs (#42491)
Enable italian and portuguese
2021-06-15 13:19:18 +05:30

427 B

id, title, challengeType, videoId, dashedName
id title challengeType videoId dashedName
5e7b9f060b6c005b0e76f05c Loops and Iterations 11 dLA-szNRnUY loops-and-iterations

--question--

--text--

What will the following code print out?:

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