In python 3.6 dict is ordered so now we can rely on items having certain locations. I realize that's not entirely accurate but I can't remember the exact details. Right now the only location I've been worried about is the zeroeth location. So suppose I have the following dictionary:
dict1 = {'a':1,'b':2}
And I want to insert key {'c':3} into the zeroeth location. I can do that in three lines of code, but I bet there is a shorter way to do it:
temp_dict = {}
temp_dict.update({'c':3})
dict1 = {**temp_dict,**dict1}