To start programming with python, we have to install python software. There are two major Python versions, those are Python 2 and Python 3. Python 2 and 3 are quite different. In this tutorial we are going to use Python 3, because it more semantically correct and supports newer features.
In this tutorial we are going to learn about installation of Python3 on ✍ Windows and ✍Linux (Ubuntu)
To install Python3 in windows, we have to download Python3 software pack from official website of Python Software Foundation.
All most all Linux (Ubuntu) operating systems came up with python 2. 7. To check the python version in your Linux (Ubuntu) system, open terminal by pressing Ctrl + ALT + T and then type following command press enter.
$ python --version (or) $ python -V
Then we get version of python i.e. Python 2.7.12
In this tutorial we are going to install Python 3 on Linux (Ubuntu) Operating System.
$ sudo apt-get update
$ sudo apt-get install python3
$ python3 --version (or) $ python3 -V
Then we get version of python3 i.e. Python 3.7.x i.e, Python3 setup successful in Linux (Ubuntu) operating system.