If I create a list of tuples lst = [(0,5), (5,0), (2,2)] and use min(lst), it returns (0,5).
How does python decide which tuple to be the smallest?
Is it using first element of tuple to make a decision?
How should I change it to return minimum sum of tuple assuming there are only 2 elements in tuples?