freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-wit.../python-for-everybody/loops-and-iterations.md

361 B

id challengeType videoId
5e7b9f060b6c005b0e76f05c 11 dLA-szNRnUY

--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

--hints--

--solutions--