[Tutor] a quetion on "There should be one and preferabley oneobvious way to do it"

Anton Sherwood bronto@pobox.com
Mon, 21 Jan 2002 12:22:25 -0800


> ###
> >>> cube = lambda x: square(square(x))
> >>> cube(42)
> 3111696
> ###
> 
> is weird as heck.  *grin*

Of course we all know that the above-defined function is quartic,
cube is really lambda x: x*square(x), and 42^3 = 74088.  So I won't
waste everyone's time by mentioning it.

-- 
Anton Sherwood  --  http://www.ogre.nu/