Back to Freecodecamp

Build your own Functions

curriculum/challenges/english/blocks/python-for-everybody/5e7b9f060b6c005b0e76f05b.md

latest527 B
Original Source

--description--

More resources:

- <a href="https://www.youtube.com/watch?v=ksvGhDsjtpw" target="_blank" rel="noopener noreferrer nofollow">Exercise</a>

--questions--

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