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.

2 Responses to Python is awesome

  1. zo says:

    hey! dude , cant seem to find any sharing engine on ur blog. y dnt u use something like Tell-a-Friend so that visitor like me can easily share ur posts with frens thru mails,IMs,blogs,socialnetworking sites etc…u cn simply register on Do check it out :)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>