Wednesday, 17 December 2014

Executing simple python programs in Eclipse IDE

IDE helps in preventing the simple syntax errors while writing the python program's,  we can write, compile and execute the code in IDE. Productivity is more using IDE(i.e. scripts can be developed very fastly)

Below procedure demonstrates executing the python programs in Eclipse IDE.

Prerequisites:
1. Python is installed, click here for python installation.
2. PyDev extension is installed in Eclipse IDE, click here for PyDev extension installation

Executing simple python program:
Create new python project.
Select "File" >> "Open File" >> "Other"

Expand "PyDev", select "PyDev project" and click on "Next >" button.

Enter the project name and click on "Finish"button.



Create "PyDev Module":
mouse right click on the project created, select "New" >> "PyDev Module".

Enter the module name and click on "Finish" button




Simple python program:
'''
Created on 15-Dec-2014

@author:
'''
print("My First Program");


Executing the python program:



No comments:

Post a Comment