Getting at an item in a list of tupples

Jason Orendorff jason at jorendorff.com
Tue Dec 11 19:35:45 EST 2001


> I want to do something like
>    print max(of all of the floats)
>    print min(of all of the floats)
> 
> In general, how do you get at the floats (or ints, or strings)?

F = [tup[1] for tup in a]
print max(F)
print min(F)

-- 
Jason Orendorff    http://www.jorendorff.com/





More information about the Python-list mailing list