dc dotCreds
Reference guide

Python Institute PCPP1 Course Notes

Study Python Institute PCPP1 section notes, then jump straight into the guided course or related practice questions without losing your place.

Continue CourseStart PracticePDF downloads available in Pro.
Checking access

Checking Pro access...

Looking for your active Pro access before showing Course Notes. This usually takes just a moment.

Course Notes preview

Unlock Pro for the full per-exam reference guide.

Preview one piece from each section. Pro includes every Course Notes section, summary, key point, common mistake, exam tip, related-question review, and PDF export.

Includes full Course Mode and Course Notes.

Section 1Advanced Object-Oriented ProgrammingPreview
More in this section
  • 76 more key points in Pro version
  • 14 more common mistakes in Pro version
  • 7 more exam tips in Pro version
  • 67 more related questions in Pro version

Summary

Highest-weight domain: 35% / 15 items. The exam is less about memorizing OOP definitions and more about predicting runtime behavior. Trace attribute lookup, MRO, descriptor/property behavior, decorator replacement, closure state, exception chaining, and object identity carefully. Know Python conventions precisely: `_name` is non-public by convention; `__name` triggers name mangling—it is not true access control.

Key Points

  • Class objects are themselves objects; user-defined classes are normally instances of the metaclass `type`.

Common Mistakes

  • Calling `_name` private or `__name` protected; Python uses convention and name mangling, not those Java-style access levels.

Exam Tips

  • 35%: spend the most review time here.
Section 2GUI ProgrammingPreview
More in this section
  • 43 more key points in Pro version
  • 8 more common mistakes in Pro version
  • 6 more exam tips in Pro version
  • 37 more related questions in Pro version

Summary

GUI Programming is 20% / 8 items. Think event loop. Creating widgets does not make an app responsive; `mainloop()` processes events and dispatches callbacks. Know the practical difference between `command=` callbacks and `.bind()` event handlers, tkinter variable objects, and geometry managers.

Key Points

  • `tkinter` is Python's standard interface to Tcl/Tk and is part of the standard-library distribution where Tk support is available.

Common Mistakes

  • Calling the callback during widget construction instead of passing it.

Exam Tips

  • 20%: know event flow more than obscure widget options.
Section 3Network ProgrammingPreview
More in this section
  • 51 more key points in Pro version
  • 9 more common mistakes in Pro version
  • 7 more exam tips in Pro version
  • 33 more related questions in Pro version

Summary

Network Programming is 18% / 8 items. The biggest technical trap is bytes versus text: sockets transmit bytes, while JSON APIs and HTTP libraries often expose text/structured conveniences. Also, POST does not universally mean 'update' and PUT does not universally mean 'create'; HTTP method semantics and the API contract control behavior.

Key Points

  • A protocol defines communication rules; a service is an application function exposed through a protocol/endpoint.

Common Mistakes

  • Sending a Python string directly through a raw socket.

Exam Tips

  • 18%: memorize socket bytes semantics and HTTP method/status families.
Section 4File Processing and Communicating with a Program's EnvironmentPreview
More in this section
  • 56 more key points in Pro version
  • 10 more common mistakes in Pro version
  • 6 more exam tips in Pro version
  • 27 more related questions in Pro version

Summary

This 15% / 7-item domain combines SQLite and structured-file/environment tools. The original draft incorrectly suggested JSON/YAML as the configuration-file focus; the official syllabus specifically tests `configparser` and `.ini` interpolation. For SQLite, know parameter binding and transaction behavior—never build SQL with string concatenation from untrusted input.

Key Points

  • `sqlite3.connect(path)` opens/creates a SQLite database and returns a Connection.

Common Mistakes

  • Building SQL by concatenating user input.

Exam Tips

  • 15%: SQLite transactions + logging/configparser are the high-value details.
Section 5Coding Conventions, Best Practices, and StandardizationPreview
More in this section
  • 45 more key points in Pro version
  • 8 more common mistakes in Pro version
  • 5 more exam tips in Pro version
  • 21 more related questions in Pro version

Summary

This 12% domain is small but easy points if the rules are precise. PEP 8 is a style guide, not the Python grammar; PEP 257 governs docstring conventions; PEP 484 defines type-hint conventions. Do not invent rigid rules the PEPs do not state: 79 characters is a recommended code-line maximum in PEP 8, not a runtime limit, and type hints are not enforced by Python itself.

Key Points

  • PEP = Python Enhancement Proposal; PEPs document standards, processes, features, and information for Python.

Common Mistakes

  • Treating PEP 8 violations as Python syntax errors.

Exam Tips

  • 12%: learn the high-certainty style rules and move on.