upgrade python version to 3.9 code example
Example 1: upgrade python to 3.8
$ sudo apt update -y
$ sudo apt install python3.8
Example 2: upgrade python to 3.9 i linux
$ sudo apt install python3.9
$ sudo apt update -y
$ sudo apt install python3.8
$ sudo apt install python3.9