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

68 lines
612 B
Markdown

---
id: 5e7b9f060b6c005b0e76f05b
title: Build your own Functions
challengeType: 11
videoId: nLDychdBwUg
dashedName: build-your-own-functions
---
# --description--
More resources:
\- [Exercise](https://www.youtube.com/watch?v=ksvGhDsjtpw)
# --question--
## --text--
What will the following Python program print out?:
```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