Installation & Setting Up

Probably, whether you are using Linux you have already python installed. Despite that, you can download python from here for Windows and Linux (I will be working on Windows 7 with python 2.7).

Once you install it, you can verify that you have it writting on the prompt (cmd) "python" and you should get something like that:

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

If you don't get that, you need to add python.exe to Windows PATH. You can do by selecting 'System' from the Control Panel, selecting the 'Advanced' tab, the 'Environment Variables' button and then finding the PATH (user or system). You shoul get something like this:


The installation for Windows is the simplest. Once you are sure you have installed successfully python there are two ways to access to python, they are: IDLE (Python GUI) and Python Command line. I prefer the first one. It looks like:


Probably you are wondering why don't you get the same color that my IDLE, that's because I'm using a theme called "Tango", this changes only the appearance, but if you are an artist like me =) you can see how to do it in here.

I recommend you to use another editor (IDE). You have a large list, but the best IDE for me is SUBLIME 2. You can download it in here. That's how one of my codes looks on SUBLIME.


Pretty no?, well the downside is that SUBLIME text doesn't support the instruction "input()". After all it's just an editor, and whenever you want to run something with inputs inside you can come back to the IDLE or command line mode. Finally remember that there are a bunch of ways to probe your code without installing python. One of them is here.


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License