Sunday, October 21

Python - Using Sublime text 2 to run python code.

These days i have been learning python from "Head First Python" book. They suggest to use idle as the python IDE, but with the availability of sublime text 2, i have been trying to use that extensively for all my projects.

It is very easy to run your python code in sublime text 2.

1) Create a new file and save it in directories where python is accessible and it can run your code.
Eg Create file hello.py and save it in F://python32/textcode folder.

2) In sublime text 2, go to Tools -> Build System and select python.



3) Type your python code and then save it. Press Ctrl + B to build your code a simple console appears to show output of your code. 



Be the first one to Comment!!!

Post a Comment