If you need the check the version of the python on ubuntu you need check using the python and continued with its abbreviation as version. Python is available with the different version as per 2.7 to 8.0.0 version on the ubuntu system. To check the version use the people code
$python --version
The simple way to install the Ubuntu is using the below code
$sudo apt-get install python