In python if you have a nested dictionary, accessing elements will look like this:
How would I go about swapping the two keys the fastest? Nothing really comes to my mind other than something like
Also just out of curiosity, if the construct is
dict.key1.key2 are there different/better solutions?