Python 2.7 to 3.x Linux code example
Example 1: Python 2.7 to 3.x Linux
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3 /usr/bin/python
Example 2: Python 2.7 to 3.x Linux
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt install python3.6