newbie seeks advise.

Erik Max Francis max at alcyone.com
Fri Sep 20 01:50:54 EDT 2002


dwelch wrote:

> Simple way, probably not optimal:
> 
>  >>> max_element = max(list(data))
>  >>> max_element
> 74

max works on any sequence, there's no need to preconvert the tuple to a
list.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Man is preceded by forest, followed by desert.
\__/ (graffiti written during French student revolt)
    Bosskey.net / http://www.bosskey.net/
 A personal guide to online multiplayer first person shooters.



More information about the Python-list mailing list