I am trying to make a dictionary to be used as the directory architecture for a fake computer. I would just like to know if there is a way to go through multiple keys of a dictionary with one .get()
statement, this is because I would like to have a multilayered structure and I want to do this in the most efficient way possible. What I am asking is would it be possible to do something like this
dictionary.get("key1/key2")
instead of doing
dictionary.get("key1").get("key2")
To restate the question is there a way to go through multiple keys of a dictionary using only one .get()
statement?