Chapter 2, Variables, Functions, and Users

Questions

Answers

Q1. What must a function begin with?

def

Q2. What are conventions that are used to name variables and functions?

All of the above

Q3. Every line after the first line of a function must be?

Indented

Q4. If you want a code file to run in Python, you need to end it with?

.py

Q5. To run a code file in the terminal, what do you need to do?

In the correct folder, type python and the name of the file

Get Python Projects for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.