Example:
input=[(10,1),(2,3),(6,2)]
output= 3
(since the maximum of the 2nd dimension is 3, 3 is returned)
You can use numpy to do exactly this
import numpy as np
a = np.array(input)
print(a[: , 1].max())
I don't know that function there are or no. But look at this:
my_items = [(10,1),(2,3),(6,2)]
my_items.sort(key=lambda e: e[0])
print (my_items[0])