x={1: [6, 3], 4: [6, 9]}
For example the result could return only the first key or the second key.
x={1: [6, 3], 4: [6, 9]}
For example the result could return only the first key or the second key.
Convert the dictionary to a list of tuples and just access an element
key = list(x)[0]