Python is awesome


pythonPython is an awesome language. The objective of a programming language is to instruct the computer what you want it to do. Ideally, the lesser instructions you need to give, the better the language. What makes python awesome is not just the ease of programming or readability but the availability of a large number of really useful libraries. You can get directly to what you want to do, and let the machine bother about the rest.

Let me give you an example: Say you want your computer to read out all the post from an RSS/atom feed. Just put together a few lines of code as follows:

import feedparser;
import speech;
import sys;

feed = "";
if len(sys.argv)==2:
	feed = sys.argv[1];
d = feedparser.parse(feed);
for e in d.entries:
        print e.title;
        print e.description;

If you wish to download python you can get it from the official python download page. A lot of flavors of Linux would already have it installed.

You will need the libraries feedParser (To read RSS/atom feeds) and pyspeech(To read out the text). These are not part of python by default. You can download them, or install using easy_install. Here is some very good documentation on easy_intall.