書名: Python Projects for Kids作者名: Jessica Ingrassellino本章字數(shù): 163字更新時間: 2021-07-09 19:35:13
A quick task for you
Now that you have finished this chapter, can you answer these questions?
Q1. What must a function begin with?
- def
- Function
- Input
- Whitespace
Q2. What are conventions that are used to name variables and functions?
- Must use lowercase letters
- Multiple words need to be connected with underscores
- Cannot use a number to start a name
- All of the above
Q3. Every line after the first line of a function must be?
- Named using numbers
- Have a colon, :
- Indented
- Use parentheses ()
Q4. If you want a code file to run in Python, you need to end it with?
- .txt
- .odt
- .py
Q5. To run a code file in the terminal, what do you need to do?
- Type the name of the file in the terminal
- Type the name of the file in the terminal while running Python
- In the correct folder, type Python and the name of the file
- All of the above steps in order
推薦閱讀
- Bootstrap Site Blueprints Volume II
- Android項目開發(fā)入門教程
- Python從小白到大牛
- 深入淺出Electron:原理、工程與實踐
- 信息可視化的藝術(shù):信息可視化在英國
- WSO2 Developer’s Guide
- 編寫整潔的Python代碼(第2版)
- SEO智慧
- Android NDK Beginner’s Guide
- JavaScript動態(tài)網(wǎng)頁開發(fā)詳解
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- 微信小程序項目開發(fā)實戰(zhàn)
- Learning Concurrent Programming in Scala
- Android應(yīng)用開發(fā)深入學(xué)習(xí)實錄
- Python期貨量化交易實戰(zhàn)