Before installing python on the Linux platform, you may have to install zlib package,
$ yum install zlib-devel
if any permission issue, then
$ sudo yum install zlib-devel
$ wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz
$ tar xf Python-3.8.6.tgz
$ cd Python-3.*
$ run the ./configure tool to prepare the build
$ make
$ make install
if you face any permission issue, then use sudo
$ sudo make install
$ make altinstall
$ vim helloworld.py
# helloworld program
print('Hello world')
press “esc” and type 😡 (save and exit)
now execute the python code
$ python helloworld.py