You can learn how to install Python 3.11 on Ubuntu, Debian, or LinuxMint from a tutorial published by Tecadmin.
How To Install Python 3.11 on Ubuntu, Debian and LinuxMint
Python 3.11 is the latest stable version at the time of writing of tutorial. Which comes with multiple new features and security upgrades. This version comes with improved error messages for common mistakes in type hints.