CSC108H Summer 2018: Lectures

Overview

CSC108H is run as an inverted class. Every week, we will post Prepare lecture videos on the PCRS that cover some of the course topics for the next week.

Each week, you must watch the Prepare video lectures for the next week and complete the Prepare Exercise by Wednesday at noon. Each Prepare Exercise is worth 0.5%.

During lecture, we will do exercises of various kinds: group work, quick thought questions, programming exercises (bring a laptop or tablet if you can!), and questions from old midterms and exams. Starting in week 2, we will assume you have watched the video lectures and have done the Prepare Exercise for the week before coming to class.

Click to view lecture notes for a particular section:
Hide/Show L0101 Hide/Show L5101
Week L0101 (R1-4: Mark) L5101 (R6-9: Lisa)

Week 1

Week 2

  • Announcements (PDF)
  • Variables Slides (PDF)
  • Functions slides
  • Python Shell
  • function_definition.py
  • origin.py
  • repeat.py
  • reuse.py
  • return_vs_print.py
  • Annotated worksheet - Nested calls (PDF)
  • Week 3

  • Announcements (PDF)
  • Python Shell (TXT)
  • nested_calls.py
  • bool_funcs.py
  • if_debugger.py
  • if.py
  • no_if_required.py
  • Just for fun: Short-circuit evaluation
  • Week 4

    • Week 4
    • Textbook:
      • Chapter 7. Using Methods
      • Chapter 9.2. Processing Characters in Strings