2**2**2**2**2 wrong? Bug?

Nick Craig-Wood nick at craig-wood.com
Thu Jul 12 12:30:05 CEST 2007


Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
>  En Wed, 11 Jul 2007 16:39:17 -0300, Paul McGuire <ptmcg at austin.rr.com>  
>  escribió:
> 
> > As was
> > pointed out earlier, left-associativity with exponentiation is of
> > little value, since (2**3)**2 is the same as 2**(3*2) or 2**6=64.
> 
>  Just for curiosity: This helps to find the answer to the problem "Which is  
>  the largest number that can be written with only 3 digits?"
>  Some people stop at 999, others try 99**9 and 9**99, and the winner is  
>  9**9**9, or:

Actually I think 9**9E9 is bigger!

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list