Session 9 — Start-the-Session videos

Instructions:

do the following:

  1. Check your own answers to the Before-the-Session quiz by watching the videos listed below.

    • Of course, do that Before-the-Session quiz BEFORE you watch the videos below that show a solution to it.

    • Check your answers carefully! They are KEY exercises that are critical to your understanding of how to implement a class.

    • If you have questions about any of the answers, GET HELP BEFORE PROCEEDING, by using Live Now! or other means.

    The videos with the solutions are:

    1. Solutions to Problems 1 and 2.

    2. Solutions to Problems 3 to 7.

    For your reference, here is paper-and-pencil copy of the above Answer Key to the Before-the-Session quiz for Session 9.

  2. Turn in your answers to the above Before-the-Session quiz by submitting either a photo of your hand-written answers or the file in which you typed your questions

    • to Moodle

    • in the Session 9 item labelled Turn in your Before the Session quiz here.

  3. Open PyCharm. Do:

    VCS ~ Update Project

    to obtain the new in-class project if it is not already in your PyCharm.

  4. Watch the “Follow me” videos listed below. As you watch each video:

    • 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.

    The “Follow me” videos for this session are as follows. (Do them in the order listed.)

    1. A video that introduces module m1_Line.

      • Watch this video while you are doing TODO 1 and TODO 2 in the m1_Line module.
    2. A video that walks you through the Point class which you will use in implementing the Line class in m1_Line.

    3. A “Follow me” video to watch while doing TODO 3 (__init__) of m1_Line.
    4. A “Follow me” video that explains the __repr__ and __eq__ methods of m1_Line.
    5. A “Follow me” video to watch while doing TODO 4 (clone) of m1_Line.
    6. A “Follow me” video to watch while doing TODO 5 (reverse) of m1_Line.
    7. A video that follows up on the previous video by using diagrams to show how to SWAP two variables.
    8. Watch this video that introduces the module called m2_baby_class when you are ready to begin that module.
    9. Watch this video that introduces the module called m3_capital_t_class when you are ready to begin that module.