dc dotCreds
Flashcard notes

Python Institute PCAP Study Guide

Preview the Python Institute PCAP flashcard-note study format, then unlock Pro for the complete section-by-section guide.

21 of 21 sections shown
Study Guide preview

Unlock Pro for every Python Institute PCAP flashcard-note lesson.

Preview the beginning of Section 1. Pro includes the complete Study Guide by section, plus Course Notes, guided course access, and Pro downloads.

Unlock with Pro

Opens the Python Institute PCAP Practice Test purchase options.

Section 1 Import and qualify modules and packages Preview

Preview: 1. Modules and Packages (12%)

Preview includes
  • 4 of 6 lesson topics
  • 1 overview segment
  • 3 core concepts
  • 2 exam tips

Lesson Topics

  • Import forms and namespace binding
  • Aliases and qualified names
  • Wildcard imports and __all__
  • Inspecting names with dir()

Overview

PCAP-31-03 1.1 tests what each import form binds into the current namespace and how Python locates modules and packages.

Core Concepts

  • `import module` binds the module object; members are normally accessed as `module.name`.
  • `import module as alias` binds the alias, so later references use that alias.
  • `from module import name` binds the selected object directly in the importing namespace; it does not by itself bind the module name.

Exam Tips

  • Write down the exact names introduced by each import before tracing the rest of a snippet.
  • When two modules have the same name, inspect search order before blaming package installation.
Section 1 continues in Pro.

Unlock Pro to read the full Import and qualify modules and packages lesson plus every remaining Python Institute PCAP Study Guide section.

Unlock with Pro
Section 2 Use the math module Pro
Use the math module unlocks with Pro.

Unlock Pro to read the full 5 topics flashcard-note study guide for this section.

Unlock with Pro
Section 3 Use the random module Pro
Use the random module unlocks with Pro.

Unlock Pro to read the full 5 topics flashcard-note study guide for this section.

Unlock with Pro
Section 4 Inspect the host with platform Pro
Inspect the host with platform unlocks with Pro.

Unlock Pro to read the full 5 topics flashcard-note study guide for this section.

Unlock with Pro
Section 5 Create user-defined modules and packages Pro
Create user-defined modules and packages unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 6 Handle, raise, and inspect built-in exceptions Pro
Handle, raise, and inspect built-in exceptions unlocks with Pro.

Unlock Pro to read the full 7 topics flashcard-note study guide for this section.

Unlock with Pro
Section 7 Define and integrate custom exceptions Pro
Define and integrate custom exceptions unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 8 Interpret character encodings and code points Pro
Interpret character encodings and code points unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 9 Operate on strings Pro
Operate on strings unlocks with Pro.

Unlock Pro to read the full 7 topics flashcard-note study guide for this section.

Unlock with Pro
Section 10 Use built-in string methods Pro
Use built-in string methods unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 11 Model classes, objects, properties, and methods Pro
Model classes, objects, properties, and methods unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 12 Use instance and class properties Pro
Use instance and class properties unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 13 Define and call methods Pro
Define and call methods unlocks with Pro.

Unlock Pro to read the full 5 topics flashcard-note study guide for this section.

Unlock with Pro
Section 14 Inspect class structure Pro
Inspect class structure unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 15 Build inheritance hierarchies Pro
Build inheritance hierarchies unlocks with Pro.

Unlock Pro to read the full 8 topics flashcard-note study guide for this section.

Unlock with Pro
Section 16 Construct and initialize objects Pro
Construct and initialize objects unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 17 Build lists with comprehensions Pro
Build lists with comprehensions unlocks with Pro.

Unlock Pro to read the full 7 topics flashcard-note study guide for this section.

Unlock with Pro
Section 18 Use lambda, map, and filter Pro
Use lambda, map, and filter unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 19 Create and use closures Pro
Create and use closures unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 20 Distinguish streams, handles, and modes Pro
Distinguish streams, handles, and modes unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro
Section 21 Perform text and binary I/O Pro
Perform text and binary I/O unlocks with Pro.

Unlock Pro to read the full 6 topics flashcard-note study guide for this section.

Unlock with Pro