mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-13 22:00:19 -04:00
* fix(curriculum): standradize links in curriculum * Data analiysis links * CIP links * fixed links in s-expressions * Update curriculum/challenges/english/01-responsive-web-design/basic-css/use-hex-code-for-specific-colors.md Co-authored-by: Ilenia <nethleen@gmail.com> * added space before target attribute * standarize external and .rock example links * wrap "check out the projects" around the links Co-authored-by: Ilenia <nethleen@gmail.com>
72 lines
742 B
Markdown
72 lines
742 B
Markdown
---
|
|
id: 5e7b9f060b6c005b0e76f05b
|
|
title: Build your own Functions
|
|
challengeType: 11
|
|
videoId: nLDychdBwUg
|
|
bilibiliIds:
|
|
aid: 249487483
|
|
bvid: BV1Fv411J7bS
|
|
cid: 376340281
|
|
dashedName: build-your-own-functions
|
|
---
|
|
|
|
# --description--
|
|
|
|
More resources:
|
|
|
|
\- <a href="https://www.youtube.com/watch?v=ksvGhDsjtpw" target="_blank" rel="noopener noreferrer nofollow">Exercise</a>
|
|
|
|
# --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
|
|
|