How to install Python on your operating system and different ways to run it. Also, you will learn to write "Hello, World!" program in Python.  
Python is a cross-platform programming language, meaning, it runs on multiple platforms like Windows, Mac OS X, Linux, Unix and has even been ported to the Java and .NET virtual machines. It is free and open source.

To download and install Python visit the official website of Python and choose your version. We have chosen Python version 3.6.2. 
Step 1 :
Step 2 :
Step 3 :
Step 4 :
Step 5 :
This mode is called interactive mode as you can interact with IDLE directly, you type something (single unit in a programming language) and press enter key Python will execute it, but you can not execute your entire program here. At the command prompt type copyright and press enter key Python executes the copyright information.
Hello World Program

Now that we have Python running, we can continue to write our first Python program.

Type the following code in any text editor or an IDE and save it as

Python scripts have the extension .py, meaning that the filename ends with .py.

For example :

print ("Hello World")
Output :
Hello World