Free preview · 1. Getting Started with Python
Module 1 overview
1 min read
Remember· What you will be able to do
By the end of this module you can:
- •install Python and run a script from the terminal,
- •write programs that print text with
print(), - •add comments that explain your code,
- •read an error message and say what it means.
Plan· Time and pacing
About 5 to 6 hours: roughly 2 hours of reading, 2 hours of typing and experimenting, and 1 to 2 hours for Assignment 1.
Vocabulary· Key terms
- •Program / script: a text file of instructions that Python follows from top to bottom.
- •Interpreter: the program (
python) that reads and runs your script. - •Terminal: the text window where you type commands.
- •REPL: the interactive
>>>prompt for quick experiments. - •Comment: a note for humans, starting with
#, ignored by Python. - •Syntax: the grammar rules of the language.
- •Error (exception): Python's message that something went wrong.
Plan· How to work through every module
- 1Read the lessons in order and type every example yourself.
- 2Do the Practice Lab (predict the output, find the bug, fill in the blanks) before you open the Solutions topic.
- 3Read the Review topic, then take the checkpoint quiz if there is one.
- 4Submit the assignment, and join the weekly discussion.