37 lines
652 B
Markdown
37 lines
652 B
Markdown
|
---
|
||
|
id: 5e7b9f060b6c005b0e76f05b
|
||
|
title: Functions B
|
||
|
challengeType: 11
|
||
|
isRequired: true
|
||
|
videoId: nLDychdBwUg
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
More resources:
|
||
|
- <a href="https://www.youtube.com/watch?v=ksvGhDsjtpw" target='_blank'>Exercise</a>
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
question:
|
||
|
text: 'What will the following Python program print out?
|
||
|
<pre>def fred():<br> print("Zap")<br><br>def jane():<br> print("ABC")<br>
|
||
|
<br>
|
||
|
jane()<br>
|
||
|
fred()<br>
|
||
|
jane()<br>
|
||
|
</pre>'
|
||
|
answers:
|
||
|
- 'Zap ABC jane fred jane'
|
||
|
- 'Zap ABC Zap'
|
||
|
- 'ABC Zap jane'
|
||
|
- 'ABC Zap ABC'
|
||
|
- 'Zap Zap Zap'
|
||
|
solution: 4
|
||
|
```
|
||
|
|
||
|
</section>
|