Session 11 Preparation — Videos, Reading and Quizzes

Quiz

Go to Moodle to find the Quiz for this Preparation.

Do the quiz as you watch the videos and do the reading. The quiz follows the same order as the videos/reading do.

Videos and Reading:

All of the following are required except items labeled Optional are, well, optional (i.e., things that may be interesting but do not directly pertain to your success in this course).

Sections 3 and 4 (Professor Galluzzi) should do the following:

  1. The Wait Until Event Pattern and WHILE Loops
  2. WHILE Loops and the ITCH pattern

Sections 1 and 2 (Professor Mutchler) should read and do the following:

  1. The Wait Until Event Pattern and   while True:   Loops
  2. WHILE Loops and the ITCH pattern

IMPORTANT notes (for Professor Mutchler's sections):

  • WHILE loops are traditionally introduced in the form:
    while some-condition:
        do-stuff
    We will instead use the less common form:
    while True:
        do-stuff-here-if-you-want
        if some-condition:
            break
        do-stuff-here-if-you-want
    The first video linked above is DIFFERENT from the similarly-named video that the other sections are using. Be sure to use the above link (and NOT the link in the quiz) for the first video above.
  • Some of the quiz questions will not match up with the first video above. For any quiz questions where you are to write a WHILE loop, READ the question and THINK about how you would do it with the while True: form, but choose any answer you wish on those questions (since a while True: loop will not be among your options). Then bring your questions to class.