upgrade pythonw to 3. code example
Example 1: command to upgrade python version
python -m pip install pip
#or
python -m pip install –upgrade pip
python -m pip install --upgrade pip
Example 2: how to install python3 in ubuntu
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.8