- 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科學(xué)計(jì)算(第2版)
- Reactive Programming with Swift
- 認(rèn)識編程:以Python語言講透編程的本質(zhì)
- 數(shù)據(jù)結(jié)構(gòu)(C語言)
- Spring Boot進(jìn)階:原理、實(shí)戰(zhàn)與面試題分析
- Java EE 8 Application Development
- FPGA嵌入式項(xiàng)目開發(fā)實(shí)戰(zhàn)
- Zabbix Performance Tuning
- Learning Image Processing with OpenCV
- Elastix Unified Communications Server Cookbook
- Splunk Developer's Guide(Second Edition)
- Java算法從菜鳥到達(dá)人
- JSP編程教程
- Implementing OpenShift
- Python程序設(shè)計(jì)教程