CS110: Spring 2025

Intro to Computer Programming with Python

CS110: Spring 2025

Schedule > 2. The Building Blocks

Week 2: Tue, Apr 8

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

For today, please do the following:

1. Download the Exercise Files

Exercise Files

2. Review the Slides

  1. The Building Blocks of Programming
  2. Supplementary Slides for Live Lecture

3. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 Using the Lecture Files pre-recorded 14:20
Video 2 Data Types & Variables pre-recorded 22:16
Video 3 Operators pre-recorded 14:42
Video 4 Built-in Functions pre-recorded 20:04

4. Review / Study the Supplemental Materials

Note: these readings / videos are suggested for additional context / examples, but not required.

  1. Severance Ch2: Variables.
    readingvideo
  2. Heinold Ch2: Variables.