Arnaud Delobelle <[email protected]> writes: > "W. eWatson" <[email protected]> writes: > >> See Subject. a = [1,4,9,3]. Find max, 9, then index to it, 2. > > Here are a few ways.
[...] My copy past went wrond and I forgot the first one: >>> a = [1,4,9,3] >>> max_index = a.index(max(a)) >>> max_index 2 -- Arnaud -- http://mail.python.org/mailman/listinfo/python-list
