Still learning Python data structures so please bear with me. I have a dictionary of lists of two-tuples:
ex_dict = {4: [(6, 3), (5, 1), (7, 5)],
6: [(4, 3), (7, 2), (0, 5)],
7: [(6, 2), (5, 2), (4, 5)],
3: [(2, 2), (5, 9), (1, 2)],
2: [(3, 2)],
5: [(7, 2), (4, 1), (3, 9)],
1: [(3, 2), (0, 3)],
0: [[1, 3], [6, 5]]}
I want to access the second element of a tuple. For example, suppose I have u=3 as the key value and v=5 as the first tuple value. How do I access the 9 in the key=3 tuple list?