I'm trying to make the dictionary as coordinates that return colors.
I made a dictionary with the keys as an array, like [0, 1]
. However, I am unable to get the value through giving the key.
dict = {
key: [0, 1],
value: "red"
}
dict[[0, 1]]
I expected dict[[0, 1]]
to give the value "red", however it just says "undefined".