Session 8 Preparation — Videos, Reading and Quizzes

Instructions:

BEFORE this session, for each of the following videos or reading:

Videos and Reading:

  1. Range expressions
    • Read this document on Python's RANGE expression. It extends the 1-argument form that you know to the 2 and 3-argument forms.
    • As you read the document, do its associated quiz on Moodle.
  2. Box-and-Pointer Diagrams
    • Video [9:22 minutes]
    • As you watch the video, do its associated quiz on Moodle.
    • Optional reading: This handout on Box-and-Pointer diagrams covers the same material as the video, plus a little more.
  3. What is a CLASS -- the concept
    • Watch this Video [7:44 minutes]. It reviews the concepts of a object and class.
    • As you watch the above video, answer questions 1 to 9 of this Quiz for the Session 8 videos on CLASSES.

      • 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.
      • It is likely that you will not know the answers to all of the questions in the above quiz. That is OK — just do what you can.
  4. What is a CLASS -- the notation
    • Watch this Video [6:56 minutes]. This video reviews the notation of a class, as well as the concepts. It is important preparation for the next video.
    • As you watch the above video, answer questions 10 to 15 of the above Quiz for the Session 8 videos on CLASSES.

      • Mysteriously, there is no question 12.
      • If question 14 does not make sense to you, no worries, just skip it.
  5. What is a CLASS -- the implementation
    • Watch this Video [11:43 minutes].
      • This is the new stuff (but the previous videos are super-important preparation without which this video will make no sense).
      • It shows all the basics of how to implement a class, using a Point class as an example.
    • As you watch the above video, answer questions 16 to 22 of the above Quiz for the Session 8 videos on CLASSES.

      • Reminder: It is likely that you will not know the answers to all of the questions in the above quiz. That is OK — just do what you can.
  6. After doing the above, but before doing the in-class project (in PyCharm):

    • Do this Before-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.
  7. When you are ready to begin the in-class project (in PyCharm):