Getting at an item in a list of tupples

Jason Orendorff jason at jorendorff.com
Wed Dec 12 01:35:45 CET 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