hi.
Iam sure many here will be aware of easter eggs in python.
For starters here is one.At the prompt type import this
import this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than
Here is another...
from __future__ import braces
File stdin, line 1
SyntaxError: not a chance
Can you find any others? ;-)
-Jeff
Rajeev Nair wrote:
hi.
Iam sure many here will be aware of easter eggs in python.
For starters here is one.At the prompt type import this
import
import __phello__
Hello world...
On Tue, Feb 10, 2009 at 6:17 PM, Jeff Rush j...@taupro.com wrote:
Here is another...
from __future__ import braces
File stdin, line 1
SyntaxError: not a chance
Can you find any others? ;-)
-Jeff
Rajeev Nair wrote:
hi.
Iam sure many here will
In Py3K,
import antigravity
That was Skip, who did that! :)
--
Senthil
On Tue, Feb 10, 2009 at 6:39 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
On Tue, Feb 10, 2009 at 6:38 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
import __phello__
Hello world...
Apparently,
On Tue, Feb 10, 2009 at 6:39 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
On Tue, Feb 10, 2009 at 6:38 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
import __phello__
Hello world...
Apparently, happens only the first time you import it ;)
import __phello__
Hello
Well, my favorite is not just import this but
import this
print this.s
--
Senthil
On Tue, Feb 10, 2009 at 6:41 PM, Senthil Kumaran orsent...@gmail.com wrote:
In Py3K,
import antigravity
That was Skip, who did that! :)
--
Senthil
On Tue, Feb 10, 2009 at 6:39 PM, Anand Balachandran
On Tue, Feb 10, 2009 at 6:54 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
If anyone had a doubt whether to use list comprehension
in their code, they have the answer - it is right there
as part of the Zen of Python ...:)
Thats a good way of looking at things. :)
--
--
Senthil
On Tue, Feb 10, 2009 at 7:07 PM, Anand Balachandran Pillai
abpil...@gmail.com wrote:
import this
...
love = this
this is love
True
love is True
False
love is False
False
love is not True or False
True
love is not True or False; love is love