Files
freeCodeCamp/curriculum/challenges/german/07-scientific-computing-with-python/python-for-everybody/build-your-own-functions.md
2022-08-19 20:53:29 +02:00

72 lines
752 B
Markdown

---
id: 5e7b9f060b6c005b0e76f05b
title: Erstelle deine eigenen Funktionen
challengeType: 11
videoId: nLDychdBwUg
bilibiliIds:
aid: 249487483
bvid: BV1Fv411J7bS
cid: 376340281
dashedName: build-your-own-functions
---
# --description--
Weitere Ressourcen:
\- <a href="https://www.youtube.com/watch?v=ksvGhDsjtpw" target="_blank" rel="noopener noreferrer nofollow">Aufgabe</a>
# --question--
## --text--
Was wird das folgende Python-Programm ausgeben?:
```python
def fred():
print("Zap")
def jane():
print("ABC")
jane()
fred()
jane()
```
## --answers--
<pre>Zap
ABC
jane
fred
jane</pre>
---
<pre>Zap
ABC
Zap</pre>
---
<pre>ABC
Zap
jane</pre>
---
<pre>ABC
Zap
ABC</pre>
---
<pre>Zap
Zap
Zap</pre>
## --video-solution--
4