This will display the current version of Python 3 installed on your system.
2. **Download the Python source code:** Download the Python source code from the official Python website:
sudo apt install python3.10
You can also compile Python from source. This method provides more control over the installation process and allows you to install the latest version of Python.