Session 7 Preparation — Videos, Reading and Quizzes
Quizzes:
Do this Quiz on Session 7
as you watch the videos and do the reading (as listed below).
This document is a Microsoft Word document;
here is the same Quiz on Session 7 (pdf) as a PDF.
Turn it in via the Session 7 Dropbox on our Moodle site.
Videos and Reading (online and textbook):
All of the following are required except the items labeled Optional are, well, optional
(i.e., things that may be interesting but do not directly pertain to your success in this course).
- Textbook reading: Section 3.7 —Boolean Variables and Operators (pages 118 - 124, 7 pages).
Focus your attention on:
- Boolean algebra (sections 3: Operations and 4: Laws)
- Optional
textbook reading:
Special Topic 3.3 — Chaining Relational Operators (page 122 in Section 3.7, 1 page)
- This section explains some syntactic sugar that is probably best avoided at this point,
since (as your textbook points out) the chaining that Python allows
is wrong (or error-prone) in many other languages.
- Optional
textbook reading:
Section 3.8 — Analyzing Strings (page 124 - 127, 4 pages)
- A nice section with lots of examples of conditionals,
but you can safely defer the details of this section.
(We'll return to this section when we revisit strings later.)