Python : Installation on Windows and Simple Example

What is python?

Python is an interpreted programming language. As it is a programming language so it tells a computer what to do. However, the computer doesn’t read the language directly – there are hundreds of programming languages, and it couldn’t understand them all. So, when someone writes a program, they will write it in their language of choice, and then compile it – that is, turn it in to lots of 0s and 1s, that the computer can easily and quickly understand. A windows program that you buy is already compiled for windows – if you opened the program file up, you’d just get a mass of weird characters and rectangles. Give it a go – find a small windows program, and open it up in notepad or wordpad. See what garbled mess you get.

But that windows program is compiled for windows – no other machine can run that program, unless it has windows. What Python is, is a language which is never actually compiled in full – instead, an interpreter turns each line of code into 0s and 1s that your computer can understand this. And it is done on the fly – it compiles the bits of the program you are using as you are using them. If you were to quit the program and come back another day, it would compile the bits you are using, as you are using them, again. Seems a waste of time? Maybe, but the fact is that when you come back another day, you might be using a Windows instead of a Mac. You might send the program to a friend, who uses another type of computer. Or you might post your program on the internet, where everyone using all different types of systems might download it. That is the wonder of an interpreted programming language – it is like a language that EVERYONE can understand.

How to install python in windows? 

If you have to install on linux environment you can follow the below link to install on linux.

For windows, you can download the most stable version of python from the below link.


If you are looking for any specific version then you can download from  .

  1. Once you have downloaded the Python MSI, simply navigate to the download location on your computer, double clicking the file and pressing Run when the dialog box pops up.
python install 1
python install 1

2. If you are the only person who uses your computer, simply leave the “Install for all users” option selected. If you have multiple accounts on your PC and don’t want to install it across all accounts, select the “Install just for me” option then press “Next.”

python install 2
python install 2

3. If you want to change the install location, feel free to do so; however, it is best to leave it as is and simply select next.


python install 3
python install 3

4. Scroll down in the window and find the “Add Python.exe to Path” and click on the small red “x.” Choose the “Will be installed on local hard drive” option then press “Next.”

python install 4
python install 4

5. You will notice that the installation will bring up a command prompt window while Python downloads and installs “Pip.” Pip is just a package management tool. This will allow you to install all the additional Python packages that are available for download.

python inastall 5
python inastall 5

6. Now that you have completed the installation process, click on “Finish.”

python install 6
python install 6

OK! Hopefully now everything is good! Now, to test if that just worked, type this in your DOS window:

python -V

If you forgot a CAPITAL V, you will accidently load python in verbose mode. Give it a go, see what happens. Just press CTRL-D to quit, or type ‘quit’ for quit instructions.

Simple Example: 

 >>> print “Hello, World!”

>>> 1 + 1

>>> 20+80

>>> print “I have just installed python” #try me  – This is comment which start from #

I have just installed python

>>># print “it nice to write a program in python”

(nothing happens, because the code was after a comment)

Related Posts

  • 45
    Check if already installed? Open a terminal window and type "python" to find out if it is already installed and which version is installed. python --version Download Python The most up-to-date and current source code, binaries, documentation, news, etc., is available on the official website of Python: Python Official Website…
    Tags: python, install, windows, installation
  • 44
    Example: #!/usr/bin/python a = 10 b = 20 list = [1, 2, 3, 4, 5 ]; if ( a in list ): print "Line 1 - a is available in the given list" else: print "Line 1 - a is not available in the given list" if ( b not…
    Tags: python, example, learn
  • 44
    Example:  #!/usr/bin/python x = True y = False print('x and y is',x and y) print('x or y is',x or y) print('not x is',not x) Output: x and y is False x or y is True not x is False Few more example: 1. if (five == 5) AND (two ==…
    Tags: example, program, python, learn
  • 42
    How to set system environment variable in windows? Go to the below location. My Computer > Properties > Advanced System Settings > Environment Variables > Then under system variables I create a new Variable called PythonPath. Just append your installation path (ex. C:Python27) to the PATH variable in System variables. Then close and open your command line…
    Tags: python, windows, caption, width, align="alignnone, id="attachment, computer, installation, install
  • 38
    These operators compare the values on either sides of them and decide the relation among them. They are also called Relational operators. Example: #!/usr/bin/python a = 21 b = 10 c = 0 if ( a == b ):    print "Line 1 - a is equal to b" else:…
    Tags: python, example, learn

Satya Prakash

VOIP Expert: More than 8 years of experience in Asterisk Development and Call Center operation Management. Unique Combination of Skill Set as IT, Analytics and operation management.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: