I was working on a cool project I am doing in Python and I needed a way to do this **without recursion** because this would limit the size it could be by limiting the amount of times the loop could go through it (max recursion depth). The function needs to work on a nest dictionary of any size. How can I add entries, and retrieve, alter, or remove values from specific keys in any nested dictionary? I haven't found a good answer for this on SO because they all are either overly complex or use recursion.