Session 16 Preparation: Videos/Reading, Start-the-Session Quiz, and Start-the-Session Follow-Me
Videos / Reading

BEFORE this session's scheduled class time, for each of the following videos or reading:

  • Step 1:   Watch the video (or read the reading).
  • Step 2:   As you do so, do the associated quiz in Moodle.
  • Step 3:   Get help on anything that is not clear to you.

Videos / Reading:

  1. The Wait Until Event Pattern; WHILE Loops: Video [7:34 minutes]
    • Note: 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
      See the video for details.
    • Do the Moodle quiz as you do this reading.
Start-the-Session Quiz

AFTER completing the Preparation to the left:

  • Step 1:   Do this Start-the-Session Quiz.
    • You do not have to print the quiz (unless you want to).
    • Just hand-write your answers on paper or type your answers into a file, whichever is easier for you.
  • Step 2:   Check your own answers by watching the videos listed below.
    • Of course, do the quiz BEFORE checking its answers!
    • Check your answers carefully!
  • Step 3:   Turn in your answers to the Before-the-Session Quiz in the usual way, on Moodle, via the item named Turn in your Before-the-Session Quiz here.
  • Step 4:   Get help on anything that is not clear to you.

Videos with solutions to the Start-the-Session Quiz:

  1. Solutions to the Start-the-Session Quiz, Problem 1: Video [1:43]
  2. Solutions to the Start-the-Session Quiz, Problems 2 through 4: Video [5:34]
  3. Do the last problem (problem 5) on the above quiz:
    • as you watch the first “Follow Me” video.

For your reference, here is a written Answer Key to the above Start-the-Session Quiz.

Start-the-Session Follow-Me

AFTER completing the Start-the-Session Quiz to the left:

  • Step 1:   Open PyCharm and do   VCS ~ Update Project   to obtain the new in-class project if it is not already in your list of projects in PyCharm.
  • Step 2:   Watch the Follow-Me videos listed below, and as you watch each one:
  • Step 3:   Do the coding in PyCharm, following what you see on the video.
    • You can do the coding as the video does it or by reviewing the video afterwards (your choice).
    • The key is to UNDERSTAND what you are coding, not merely type what the video shows.

Follow-Me videos:

  1. Input from the Console, for m1r_console_input_examples: Video [7:04]