Skip to content

Oct 08: Quiz3, Testing Modules

Learning Objectives

After today's class, you should be able to:

  • Explain how to use the from keyword in an import statement.
  • Describe how functions in a test module use assert statements.

Announcements

New (Second) Textbook!

From the Enroll in a Course page on Runestone:

  • Please leave your Username, First Name, Last Name, and Email unchanged.
  • Use jmu_cs149_fa25_mayfield2 (with a 2 at the end) for the course name.
  • You now have two free Python books! This week's reading is in the new book.

HW7 Debrief

  • Default arguments
  • ord() and chr()
  • Unpacking a tuple
  • Starting with None

PA1 Introduction

[20 min]

  • Unit testing (Week 8)
    • Part A due Tuesday 10/14
  • String methods (Week 9)
    • Part B due Tuesday 10/21 (before Fall Break)

Quiz 3

  • 1st sheet: "written portion"
  • 2nd sheet: "coding portion" (write code on paper)