I want to find the max element's index in a list of tuple elements so i can reach the key value. How can i do that? Basically my code;
temp_tuple = [
('A', 1),
('B', 3),
('C', 1)
]
max_value = max(value[1] for value in temp_tuple)
I want to find ('B',3) or 1 as index