freeCodeCamp/curriculum/challenges/espanol/07-scientific-computing-wit.../python-for-everybody/build-your-own-functions.md

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