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

72 lines
679 B
Markdown
Raw Normal View History

---
id: 5e7b9f060b6c005b0e76f05b
title: Costruire le proprie funzioni
challengeType: 11
videoId: nLDychdBwUg
bilibiliIds:
aid: 249487483
bvid: BV1Fv411J7bS
cid: 376340281
dashedName: build-your-own-functions
---
# --description--
Altre risorse:
\- [Esercizio](https://www.youtube.com/watch?v=ksvGhDsjtpw)
# --question--
## --text--
Cosa scriverà il seguente programma 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