In this unit, we will take a guided tour of the Python programming language. We'll start by familiarizing ourselves with some introductory Python reference materials, then we will illustrate and apply these concepts as we work through a guided Python exercise.
Please read through the following materials in order. As you review this material, take opportunities to execute the referenced code snippets and observe the results. As you are engaging with the material, take all the opportunities you'd like to explore your own curiosities and try things out.
So now might be a good time to create a new Python script somewhere on your computer, perhaps on your Desktop, named learning.py
. Then iteratively revise/overwrite the script using your text editor and execute it from the command-line (e.g. python learning.py
or python3 learning.py
) to observe the results. The practice of typing and executing the code yourself and observing the results will help you learn.
- Python Language Overview:
- Syntax and Style
- Comments
- Logging
- Variables
- Functions
- Control Flow
- Datatypes:
- None
- Booleans
- Strings
- Numbers
- Dates and Times
- Lists and Sets (Intermediate Concept)
- Dictionaries (Intermediate Concept)
- Package Management (Intermediate Concept)
- Debugging (Intermediate Concept)
Once you have sufficiently reviewed these materials, complete the following guided exercise to help you practice and internalize what you have learned:
Help each other out! Ask questions in person and in Slack! Before class is over, we will convene to share solutions to this exercise.