Session 9 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. Slides on Implementing Classes: Reading.
    • There are TWO Moodle quizzes associated with this item.
    • Try to make sense of these slides, but don't worry if you don't understand all of them (they really need a video to accompany them).
    • Just bring your questions about them to class.
  2. What is a CLASS -- the concept: Video [7:44]
    • Optionally, review this video from the previous session.
    • This video reviews the concepts of a object and class.
    • There are no Moodle quizzes associated with this and the remaining items in this Videos/Reading section.
  3. What is a CLASS -- the notation: Video [6:56]
    • Optionally, review this video from the previous session.
    • This video reviews the notation of a class, as well as the concepts. It is important preparation for the next video.
  4. What is a CLASS -- the implementation: Video [11:43]
    • Optionally, review this video from the previous session.
    • This video shows all the basics of how to implement a class, using a Point class as an example.
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, Problems 1 and 2: Video [8:13]
  2. Solutions to the Start-the-Session Quiz, Problems 3 to 7: Video [6:58]

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. For module m1_Line, TODO 1 and TODO 2: Video [6:45]
  2. For module m1_Line, walk-through of the Point class: Video [2:58]
    • You will use the Point class in implementing the Line class in m1_Line.
  3. For module m1_Line, TODO 3: Video [4:13]
  4. An explanation of the __repr__ and __eq__ methods of the Line class.: Video [3:17]
  5. For module m1_Line, TODO 4 (the clone method): Video [2:54]
  6. For module m1_Line, TODO 5 (the reverse method): Video [5:07]
  7. A follow-up that uses diagrams to show how to SWAP the values of two variables: Video [4:32]
  8. Introduction of the m2_baby_class: Video [14:18]
    • Do NOT watch this video BEFORE Session 10.
    • Instead, watch it when you are ready to BEGIN implementing the m2_baby_class.