"""Antigravity 0.0.""" import random SCRIPT = """\
Guy 1 is talking to Guy 2, who is floating in the sky.
Guy 1: You're flying! How?
Guy 2: Python!
Guy 2: I learned it last night! Everything is so simple!
Guy 2: Hello world is just print "Hello, World!"
Guy 1: I dunno... Dynamic typing? Whitespace?
Guy 2: Come join us! Programming is fun again!
It's a whole new world up here!
Guy 1: But how are you flying?
Guy 2: I just typed import antigravity
Guy 1: That's it?
Guy 2: ...I also sampled everything in the medicine cabinet for comparison.
Guy 2: But I think this is the Python.
"I wrote 20 short programs in Python yesterday. It was wonderful. Perl, I'm leaving you." """ def fly(): if random.random() < 0.1: print "Status: 302" print "Location: http://www.google.com/url?sa=D&q=http://xkcd.com/353/" else: print "Content-type: text/html" print print SCRIPT