Supporting materials for the Real Python tutorial How to Add Python to PATH.
Here you'll find a file for Windows and one for Linux and macOS. They have snippets and instructions distilled from the tutorials.
Additionally, you'll find some ways to set environment variables and modify PATH
with PowerShell on Windows that aren't included in the tutorial.