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

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Jul 11 20:14:58 EDT 2007


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:

|   9
|  9
| 9

Sorry, couldn't resist.

-- 
Gabriel Genellina




More information about the Python-list mailing list