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

