Session 2 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. Preparation from Session 1:
  2. Getting started in Python - Numbers, Arithmetic Operators, Expressions, Objects, Types, Names, and Assignment (whew!): Video [49:42]
    • This video and all the other videos in this section have an associated quiz in Moodle.
    • While you watch this video, you will complete the m1_expressions module of the 02-ObjectsFunctionsAndMethods project in PyCharm. Watch the beginning of the video for details.
    • This video introduces a lot of ideas, almost all of which will be so natural to you that you hardly need to be told it. As you watch the video and do the accompanying work in PyCharm, make notes to yourself on things that you think you might not remember until you have practiced them more. Over the next few sessions, you will get LOTS of practice on ALL of the ideas in this video.
    • In making this video, we spoke and typed slowly, so that you could keep up with the video. For some of you, it may be TOO slow; if so, watch it at 1.5 (or even double) speed, using the settings that YouTube provides in most browsers.
  3. Introduction to Functions: Video [10:51]
    • This video refers to exercises that you will see in Session 2 (the video falsely claims that you saw them in Session 1).
  4. Calling Functions with Arguments: Video [3:44]
    • The preceding video explained how a program's flow of CONTROL changes when a function call occurs.
    • This video explains the flow of INFORMATION that occurs during a function call.
  5. Object Oriented Programming (OOP): Video [7:47]
    • This video explains the concept of Object Oriented Programming, contrasting it with Procedural Programming.
  6. Classes — what objects know (in instance variables) and what they can do (via methods); UML Class Diagrams: Video [7:49]
    • The previous video introduced the concept of Object Oriented Programming (OOP).
    • This video explains the programming constructs that embody OOP: classes, objects, methods, and instance variables.
  7. Objects and Classes; Using Objects: Video [20:00]
    • This video extends the concepts from the previous videos to show how a software developer uses objects to be more productive.
  8. Thinking Like a Computer: Control Flow: Video [3:04]
    • Developed and narrated by Valerie Galluzzi.
    • Code associated with the video (for your reference).
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: Video [21:52]
    • The answer to 7b is slightly wrong in the video. See below.
  2. Corrected solution to problem 7b of the Start-the-Session Quiz: Video [3:14]
    • Corrected answer to problem 7b.

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 m2_calling_functions_and_methods: Video [19:43]
    • Do a VCS ~ Update Project now even if you already have the Session 03 project.
  2. For TODOs 1 through 3 of module m4_functions: Video [10:17]