To do this, follow these steps on the command line.
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
then
sudo apt update & upgrade
Now ready to install ..
sudo apt install python3.8
Let’s check after the installation is finished.