install python3 Ubuntu 16.04.6 LTS code example
Example: install python 3.6 ubuntu 16.04
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.6
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.6