Install Python 3 - spaceshiptrip/raspberrypi GitHub Wiki
Raspberry Pi OS and other Linux (Debian-based) distributions
Most distributions of Linux come with Python 3 already installed, but they might not have IDLE, the default IDE (interactive development environment), installed.
Use apt to check whether they are installed and install them if they aren’t.
Open a terminal window and type:
sudo apt update
sudo apt install python3 idle3
This will install Python 3 (and IDLE), and you should then be able to find it in your Application menu.
Setting up the Development Environment
To start coding, follow the steps to set up your python virtual environment: https://github.com/spaceshiptrip/raspberrypi/wiki/Setup-Python-Development-Environment