The following bash script will automate the installation of Python 3.6 on RHEL/CentOS 6.x & 7.x systems.
The bash script uses the IUS repo. Check them out! https://ius.io/
source <(curl -s https://raw.githubusercontent.com/franklines/python36-installer/master/python36-installer.sh)chmod +x python36-installer.sh
./python36-installer.sh