# the answer is given by Merwanski for linux:
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.8
python3.8 --version
# you could also simply go to: https://www.python.org/downloads/ and find your preferred version.
# install it for your OS.