- 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
推薦閱讀
- Python數(shù)據(jù)分析入門與實戰(zhàn)
- 小創(chuàng)客玩轉(zhuǎn)圖形化編程
- Vue.js 2 and Bootstrap 4 Web Development
- Mastering C# Concurrency
- 實戰(zhàn)低代碼
- Android NDK Beginner’s Guide
- 程序是怎樣跑起來的(第3版)
- Processing創(chuàng)意編程指南
- 零基礎(chǔ)學(xué)Scratch 3.0編程
- TypeScript 2.x By Example
- 微前端設(shè)計與實現(xiàn)
- Microsoft Windows Identity Foundation Cookbook
- 軟技能2:軟件開發(fā)者職業(yè)生涯指南
- 系統(tǒng)分析師UML用例實戰(zhàn)
- Python程序設(shè)計:基礎(chǔ)與實踐