How do I, in a single expression, get a dictionary where one key-value pair has been added to a sub-dictionary in some input dictionary? The input dictionary should be left unchanged. It can be assumed the sub-dictionary does exist and that the new key-value pair is not already in the sub-dictionary., get a diction