I have an odd question. If I were to have a dictionary like so:
{"foo":{"abc":123},"bar":{"def":456},"biz":789}
and I had a list of indexes like so:
["foo","abc"]
How would I GET AND MODIFY that item? I've seen questions like it, but all the answers tell me to make a bunch of indexes ex:
foobar["foo"]["abc"] = "modified"
But the problem is that my indexes are in lists. Also, I could do something like ["foo","abc","more","items"] and that would need to equate to foobar["foo"]["abc"]["more"]["items"]
Is there some way that I could get and modify an item in a dictionary using a list of indexes?