Schedule > 3. The Building Blocks
Python (and all programmming languages) are made up of very small “words” (like nouns and verbs) that can be composed into meaningful “sentances” (i.e. code blocks that do something useful). Today we are going to review some of the basic building blocks of code, including data types, operators, and variables.
In addition to the lectures and videos, there are also some sample python files that you will need to download and run (using IDLE). If, for any reason, you are having trouble installing IDLE (instructions can be found in the first part of homework 1), reach out to your TA or sign-up for an office hours session. Please keep your files organized (as explained in hw01). I recommend a folder structure like this:
cs110
|-- homework
│ |-- hw01
│ |-- hw02
| ...
|-- lectures
│ -- lecture01
│ -- lecture02
│ ...
|-- tutorials
|-- tutorial01
|-- tutorial02
...
Today's Activities
1. Download the Exercise Files
Exercise Files2. Review the Slides
3. Review the Lecture Video(s)
| Link | Type | Title | Duration |
|---|---|---|---|
| Video 1 | required | Using the Lecture Files | 10:51 |
| Video 2 | required | Data Types & Variables | 17:04 |
| Video 3 | required | Operators | 08:36 |
| Video 4 | required | Built-in Functions | 13:31 |
| Video 5 | lecture | Live Lecture | 58:50 |
4. Review the References & Supplemental Materials
Note: these readings / videos are suggested for additional context / examples, but not required.
-
Severance
Ch2: Variables.
reading • video - Heinold Ch2: Variables.
5. Do the Practice Quiz (Exercises)
Note: The quiz is to help you test your own understanding
of the concepts. It is not graded, and is designed to help you to see
what you already know and what you should review / ask about.
https://canvas.northwestern.edu/courses/130514/quizzes/132654