Please enable JavaScript to use CodeHS

PCAP Certification Prep

Modules and Packages

Import variants, module search mechanics, the platform module, and building user-defined modules and packages.

Lessons

2.1 Import Variants and Module Search

  • Import Variants and Module Search
  • Exploring Imports and dir()
  • Pick the Right Import
  • Fix the Bug: Missing Import
  • Quick Check: Import Variants

2.2 The Math and Random Modules on the Exam

  • The Math and Random Modules on the Exam
  • Math and Random in Action
  • Party Planner Math
  • Fix the Bug: Pizza Count
  • Quick Check: Math and Random

2.3 The Platform Module

  • The Platform Module
  • Inspecting the Host Platform
  • Build a System Report
  • Fix the Bug: System Report
  • Quick Check: The Platform Module

2.4 Building Your Own Modules and Packages

  • Building Your Own Modules and Packages
  • A Module with a __name__ Guard
  • Package a Utilities Library
  • Fix the Bug: The __name__ Guard
  • Quick Check: Your Own Modules

2.5 Modules and Packages Quiz

  • Modules and Packages Quiz

Courses that include this module