On Jul 21, 2011, at 2:27 AM, CC Chen wrote:

> When I set an array k =3D [3,5,6,0,1,4,5,6,9,1]
>=20
> And I used the k.max can know the max value is 9
>=20
> How do I get the number "8" (as k[8] =3D 9)??

k.index(k.max) will work. It's not completely optimal, but it's concise =
and asymptotically optimal.=