Python: Reference Nested Dict key with variable

QuestionsPython: Reference Nested Dict key with variable
sethbeckerman5 Staff asked 4 years ago

I'm trying to figure out how I can reference nested dict keys as a variable. For example, I have a nested dict of type:

I would like to do something like:

Output I would expect:


View on Stack Overflow