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

83 lines
531 B
Markdown
Raw Normal View History

---
id: 5e7b9f060b6c005b0e76f05b
challengeType: 11
videoId: nLDychdBwUg
---
# --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--
Zap
ABC
jane
fred
jane
---
Zap
ABC
Zap
---
ABC
Zap
jane
---
ABC
Zap
ABC
---
Zap
Zap
Zap
## --video-solution--
4
# --hints--
# --solutions--