Need max values in list of tuples, based on position

DFS nospam at dfs.com
Fri Nov 11 02:22:34 EST 2022


[(0,11), (1,1),  (2,1),
  (0,1) , (1,41), (2,2),
  (0,9) , (1,3),  (2,12)]

The set of values in elements[0] is {0,1,2}

I want the set of max values in elements[1]: {11,41,12}	





More information about the Python-list mailing list