Lecture 5: Booleans and Conditionals

Slides

Four per page (with some fill-in-the-blanks): A PDF file of the lecture slides handout. We'll provide a printed copy in lectu re for you to make notes on.

Readings

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

Code

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

Solutions

Complete pdf version of slides (with fill-in-the-blanks-filled-in).

Solutions for the notebook.

Snow Day Announcements

Classes were cancelled for this lecture day due to a snow storm. Here were the announcements related to that closure.

First, the 10-minute quiz that was scheduled for the beginning of today’s class will instead be held at the beginning of class on Mon. Feb 13.

Second, PS2 will still be due at 11:59pm on Mon. Feb 13. We will monitor the weather conditions and notify you via email whether the scheduled Drop-In hours for Thu, 02/09, 6-10pm will take place or be canceled. As always, you can use the Google Group to ask questions about the material and the problem sets.

Third, in order to keep on track with the CS111 schedule, you should (alone or in groups) cover the material in today’s slides, notebook, and reading on Booleans and Conditionals. You can do this in stages:

Truthiness and falsiness and why isVowelBuggy doesn’t work (slides 5-27 and 5-28) is explained from 5:55 to 11:11 in the Lec 05 Part 3 screencast from Spring ‘15.