Archive

Posts Tagged ‘easter egg’

Antigravity DOES work!

May 9, 2011 1 comment

Today I came across the funny antigravity cartoon at xkcd again. I said to myself: “Well, let’s give it a try.” I was amazed to see that it really works! Try it yourself:

$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import antigravity
>>>

These guys were able to put it in the standard library :) Python is really fun, I discover that every day.

I won’t link the image, you must try it yourself.

Categories: fun, python Tags: , ,

The “Hello World” Easter Egg

March 22, 2011 Leave a comment

Classical “Hello World” in Python:

#!/usr/bin/env python

print "Hello World"

You might think it couldn’t be any simpler. Wrong! :) Try this:

#!/usr/bin/env python

import __hello__

I found it here. Visit this address for more Python Easter eggs.

Categories: python Tags: , ,