CS110: Spring 2020

Intro to Computer Programming with Python

CS110: Spring 2020

Schedule > 2. The Building Blocks

Week 2: Thu, Apr 9

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
        |-- lecture_01
        |-- lecture_02
        ...

Please Complete the Following Tasks

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 06:22
Video 2 Data Types & Variables pre-recorded 14:03
Video 3 Operators pre-recorded 08:36
Video 4 Built-in Functions pre-recorded 13:31
Video 5 Practice with variables, constants, & operators lecture 01:23:07

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.

5. Reminders

Date Action Item
2020-04-07
(past due)
You MUST sign up for a tutorial session.
sign-ups
2020-04-09
(or as soon as possible)
Make sure you have your Python environment configured (see homework 1, part 1 for instructions).
configure python