To Install Python, Firstly Download The Python Distribution From
To Install Python, Firstly Download The Python Distribution From
To Install Python, Firstly Download The Python Distribution From
Installation of PYTHON :
2. Having downloaded the Python distribution now execute it. Double click on the
downloaded software. Follow the steps for installation:
3.
Click the Finish button and Python will be installed on your system.
Python Example
Python code is simple and easy to run. Here is a simple Python code that will print "Welcome to
Python".
1) Interactive Mode:
You can enter python in the command prompt and start working with Python.
Press Enter key and the Command Prompt will appear like:
Eg:
2) Script Mode:
Using Script Mode , you can write your Python code in a separate file using any editor of your
Operating System.
NOTE: Path in the command prompt should be where you have saved your file. In the above case file
should be saved at desktop.
Click on Start button -> All Programs -> Python -> IDLE(Python GUI)
i) Click on Start button -> All Programs -> Python -> IDLE(Python GUI)
ii) Python Shell will be opened. Now click on File -> New Window.
A new Editor will be opened . Write your Python code here.