logo
Get Started
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 http://www.python.org/ and choose your version. We have chosen Python version 3.6.2. 
Step 1 :
python
Step 2 :
python
Step 3 :
python
Step 4 :
python
Step 5 :
python
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.
python
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 helloworld.py

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

For example : helloworld.py

print ("Hello World")
Output :
Hello World
python