- Python Projects for Kids
- Jessica Ingrassellino
- 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
推薦閱讀
- Apache ZooKeeper Essentials
- Java應用與實戰
- 看透JavaScript:原理、方法與實踐
- Practical DevOps
- 微服務架構深度解析:原理、實踐與進階
- C++反匯編與逆向分析技術揭秘(第2版)
- .NET 4.0面向對象編程漫談:應用篇
- MySQL 8從零開始學(視頻教學版)
- Learning Unreal Engine Game Development
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- 歐姆龍PLC編程指令與梯形圖快速入門
- 軟件測試實驗實訓指南
- Unity3D高級編程:主程手記
- 信息安全技術(第2版)
- C語言程序設計:現代方法(第2版)