install python 3.9 ubuntu

sudo apt-get install python3

Here is what the above code is Doing:
1. It’s updating the package list.
2. It’s installing the python3 package.

You can also install multiple packages at once. For example, to install both python3 and python3-pip, you can use the following command:

sudo apt-get install python3 python3-pip