how to update python in ubuntu 18.04 code example Example: update python ubuntu $ sudo apt update -y $ sudo apt install python3.7