from collections import OrderedDict #Pra poder acessar os elementos igual listas e tuplas.
v v v
lista_aberta = {(1,3): [1,2,3,4], (1,4): [2,3,4,9], (1,5): [3,4,1,7]}
I need to check all the elements and return which has the smallest [3] value, which in this case is (1,3) where its [3] value is equal to 4.
I use a repetition structure to compare values, or do you have a more direct method to do this?