mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-20 16:00:35 -05:00
56 lines
497 B
Markdown
56 lines
497 B
Markdown
---
|
|
id: 5e7b9f060b6c005b0e76f05c
|
|
title: Schleifen und Iterationen
|
|
challengeType: 11
|
|
videoId: dLA-szNRnUY
|
|
bilibiliIds:
|
|
aid: 674492981
|
|
bvid: BV1hU4y1H7tF
|
|
cid: 376531204
|
|
dashedName: loops-and-iterations
|
|
---
|
|
|
|
# --question--
|
|
|
|
## --text--
|
|
|
|
Was wird der folgende Code ausgeben?:
|
|
|
|
```python
|
|
n = 0
|
|
while True:
|
|
if n == 3:
|
|
break
|
|
print(n)
|
|
n = n + 1
|
|
```
|
|
|
|
## --answers--
|
|
|
|
<pre>0
|
|
1
|
|
2</pre>
|
|
|
|
---
|
|
|
|
<pre>0
|
|
1
|
|
2
|
|
3</pre>
|
|
|
|
---
|
|
|
|
<pre>1
|
|
2</pre>
|
|
|
|
---
|
|
|
|
<pre>1
|
|
2
|
|
3</pre>
|
|
|
|
## --video-solution--
|
|
|
|
1
|
|
|