Python is a general-purpose programming language used for automation, APIs, data processing, testing, and infrastructure tooling. These notes explain the language and its tooling from first principles, including details that are often hidden behind commands such as import and pip install.

The examples use Python 3. Python 3.14.6 is the current stable feature release as of July 29, 2026, but the foundational concepts here also apply to supported earlier Python 3 releases.

Start Here

TopicWhat it explains
Modules and ImportsWhere reusable code comes from and what happens when Python executes import
Installing Packages with pipWhat pip downloads and installs, where the files go, and how it differs from apt, dnf, and yum
Data Formats in PythonReading, changing, and writing serialized data with the standard library and PyYAML

A Useful Learning Order

Python interpreter


modules and import


virtual environments and pip


libraries for practical tasks

Understanding this order helps diagnose common problems such as installing a package successfully but importing it from a different Python environment.

Resources