Virtual Environments


Figure 1

XKCD - “Python Environment”
XKCD - “Python Environment”

Figure 2

Checking that uv is installed by running "uv --version"
Checking that UV is installed

Figure 3

Files created by running "uv init"
Files created by “uv init”

Figure 4

The Github interface for creating a new repository
Creating a new repository

Figure 5

The Github interface showing the initial commit
New repository with initial commit

Creating A Module


Class Objects


Figure 1

Car Class object example
Car Class object example

Figure 2

Car Instance example
Car Instance Example

Unit Testing


Extending Classes with Inheritance


Figure 1

Class diagram showing inheritance from Car to CarGasEngine and CarElectricEngine
Class diagram showing the Car class as a parent class, with CarGasEngine and CarElectricEngine as child classes that inherit from Car.

Inheritance and Composition


Figure 1

Car Class object example
Car Class object example

Figure 2

Car Inheritance example
Car Inheritance example

Figure 3

Car Composition example
Car Composition example

Figure 4

Complete Car Composition example
Complete Car Composition example

Static Code Analysis


Building and Deploying a Package


Figure 1

GitHub Actions Tab with a Workflow
GitHub Actions & Workflow

Figure 2

GitHub Actions Successful Build
GitHub Actions Running