Posts

Showing posts from April, 2010

Overcoming Python in Ubuntu 9.10

Python's rise to power is imminent by claims that Python alongside PHP/ Perl is the "P" in LAMP. This is equivalent to knighthood amongst geeks. Python fascinates developers who are very much conscious about productivity. The first step is to ensure Python is installed so here is the command to do so in Ubuntu 9.10. (Most likely it would already be installed). $ sudo apt-get install python  The first step to testing a language is to write a hello world program. Hello World Program Python's manner of saying hello world to the world is different. Go to terminal and write the following command to invoke python. $ python Once inside the shell. Type print "hello world" and the output hello world will appear. >>> print "hello world" hello world Another way of saying hello from the Python world is via creating a text file and writing the same in it and then saving it say "helloworld.py" and then on the command prompt executing...