say I have a dict like this:
colors = {
green: {
light: "lightgreen",
dark: "darkgreen",
},
blue: {
light: "lightblue",
dark: "darkblue",
}
}
How can I index into this with ONE key, like "green.light"
. I tried colors["green.light"]
, but it didn't work.