google, Python, and eleven (was Re: google and Python ;-)
Peter Hansen
peter at engcorp.com
Sun Sep 23 01:35:16 EDT 2001
Peter Hansen wrote:
>
> >>> import operator
> >>> f = lambda s: reduce(operator.add, map(int, str(reduce(operator.add, map(ord, s)))))
> >>> f('peterhansen')
> 11
>
> Man! This numerology stuff is just astounding! Think of the uses!
Here's a few more uses:
>>> f('worldtradecenter')
11
>>> f('alqaeda')
11
>>> f('OsamaBinLaden')
11
>>> f('taliban')
11
>>> f('Numerology')
11
Quick! Somebody email eleven11 at hushmail.com to add to the list of
"World Trade Center Disaster Facts"!
-numerology-is-for-morons-ly yr's,
Peter
More information about the Python-list
mailing list