I have the following version of Python, in my Ubuntu 18.04 LTS.
python --version
Python 2.7.17
python3 --version
Python 3.6.9
How to upgrade it to the latest version 3.8.2 I have already run the commands:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.8.2
However, that did not make any changes.