GETTING
STARTED WITH PYTHON
Chapter – 3 (PART -2)
Class – 11
Installing Python
First check your system configuration the download according to your
system.
You can download python distribution from the link given below:
Note:Download only that python
distribution/MSI Installer, which is the best suited for the Operating system
on which you want to install it.
After download the python:
Double-click the icon labeling the file <version>.exe
Popup window will appear:
Click on Run button
Setup popup window will appear
Note: Select the check both box
If the Python Installer finds an earlier version of Python installed on
your system, the Install Now message will instead appear as Upgrade Now and the
check box will not appear.
Next step: User Account Control popup window will
appear
Click the Yes button.
Next step: A python <version> Setup popup window
will appear with a Setup Progress message and a progress bar.
After some time, a new Python <version> Setup popup window will
appear with a Setup was successfully message.
Click the Close button.
Work with Python
After installation of python, we can work on it in following ways:
1. in Interactive mode
2. in Script mode
1. In Interactive mode
Search the python.exe file in the drive in which it is installed. If found double click it to stary python in interactive mode.
Click start buttonèAll Programsèpython<version> IDLE (Python GUI)
Uses of IDLE
2. in Script mode
Firstè Click Start
buttonè All ProgramsèPython IDLE
SecondèClick FileèNew in IDLE Python Shell (New page will appear) the
type program code and save file with .py extension
Example:
print(“Hello World”)
print(‘You can type any message’)
Then Save the file and Click RunèRun Module
It will execute all the commands of program file and display output in
separate python shell window.
No comments:
Post a Comment
Please do not any spam in the comment box.