Lecture 6: Booleans, Logical Expressions, Predicates and Conditionals


Important Note

This semester, we are missing a lecture due to Wellesley Monday falling on Tue, Feb 20. In normal semesters, we cover Lecture 6 on Friday and Lecture 7 on Tuesday, so that you can have a lab on Wed about these topics. Because we're missing the Tue lecture, we're asking you to read some slides from Lecture 6 and some slides from Lecture 7. We will continue with the remaining slides on Friday, Feb 23rd.

A PDF file of the lecture slides handout on Booleans, Logical Expressions, and Predicates. Read slides 1 to 12 (inclusive).

A PDF file of the lecture slides handout on Conditionals. Read slides 1 to 8 (inclusive).

Optional Slides

We have briefly discussed local and global variables. If you are interested in learning more about them, read this (short) deck of slides.

Handout on local and global variables.


Think Python, Ch. 5: Conditionals [Sections 5.1 - 5.7].


Click on this lecture_06.zip link to download the .zip file to your computer. Folder contains the Notebook for lecture activities.


Solutions for the notebook.