---
id: 5e7b9f060b6c005b0e76f05b
title: 编写你自己的函数
challengeType: 11
videoId: nLDychdBwUg
dashedName: build-your-own-functions
---

# --description--

更多资源

\- [练习](https://www.youtube.com/watch?v=ksvGhDsjtpw)

# --question--

## --text--

下面这个 Python 程序会打印什么？：

```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

