Oct 08: Quiz3, Testing Modules
Learning Objectives
After today's class, you should be able to:
- Explain how to use the
fromkeyword in animportstatement. - Describe how functions in a test module use
assertstatements.
Announcements¶
- Due today: HW7 Reflection
- Read: Week 8 (due Oct 14)
- Start: Project 1 (due Oct 21)
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 a2at 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()andchr()- 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)