- 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
推薦閱讀
- Getting Started with Citrix XenApp? 7.6
- Spring Boot 2實戰之旅
- PHP動態網站程序設計
- UML和模式應用(原書第3版)
- 小程序實戰視頻課:微信小程序開發全案精講
- Instant Apache Stanbol
- Learning Python Design Patterns(Second Edition)
- Python數據分析從0到1
- 深入理解Android:Wi-Fi、NFC和GPS卷
- Protocol-Oriented Programming with Swift
- 區塊鏈技術與應用
- RealSenseTM互動開發實戰
- 代替VBA!用Python輕松實現Excel編程
- R語言數據可視化:科技圖表繪制
- Django Design Patterns and Best Practices