How to download and installation Python software in Windows operating system:
Steps involved to download and installation of python
Step 1: Go to website www.python.org and click downloads select version which you want.
![]() |
Step 2: Click on Python 3.9.1 and download. After download open the file.
![]() |
Step 3: Click on Next to continue.
![]() |
Step 4: After installation location will be displayed. The Default location is C:\Python27.
Click on next to continue.
![]() |
Step 5: After the python interpreter and libraries are displayed for installation. Click on Next to continue.
![]() |
Installation has been processed.
![]() |
Step 7: Click the Finish to complete the installation.
![]() |
Setting up PATH to python:
Ø Programs and other executable files can be in many directories, so operating systems provide a search path that lists the directories that the OS searches for executables.
Ø The path is stored in an environment variable, which is a named string maintained by the operating system. This variable contains information available to the command shell and other programs.
Ø Copy the Python installation location C:\Python27
Ø Right-click the My Computer icon on your desktop and choose Properties. And then select Advanced System properties.
Ø
![]() |
![]() |
||
Go to Environment Variables and go to System Variables select
Path and click on
Edit.
Ø Add semicolon (;) at end and copy the location C:\Python27 and give semicolon (;) and click OK.
Running Python:
a. Running Python Interpreter:
Ø Python comes with an interactive interpreter. When you type python in your shell or command prompt, the python interpreter becomes active with a >>> prompt and waits for your commands.
Now you can type any valid python expression at the prompt. Python reads the typed expression, evaluates it and prints the result.
![]() |
b. Running Python Scripts in IDLE:
Ø Goto File menu click on New File (CTRL+N) and write the code and save add.py a=input("Enter a value ")
b=input("Enter b value ") c=a+b
print "The sum is",c
Ø And run the program by pressing F5 or RunRun Module.
![]() |
c. Running python scripts in Command Prompt:
Ø Before going to run we have to check the PATH in environment variables.
Ø Open your text editor, type the following text and save it as hello.py.