[BangPypers] Python easter eggs :)
Anand Balachandran Pillai
abpillai at gmail.com
Tue Feb 10 14:37:37 CET 2009
This is not an easter egg, but a joke using the Zen.
>>> 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
True
True
Hopefully, an apt one for the Valentine's day.
Source: http://www.redmountainsw.com/wordpress/archives/a-joke-in-the-python-interpreter
--Anand
On Tue, Feb 10, 2009 at 7:00 PM, Senthil Kumaran <orsenthil at gmail.com> wrote:
> On Tue, Feb 10, 2009 at 6:54 PM, Anand Balachandran Pillai
> <abpillai at 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
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
--
-Anand
More information about the BangPypers
mailing list