How allocation of memory for `dict` in Python works?

I was playing around with Dictionaries and found this. import sys Square1 = {} Square2 = {} Square3 = {} for i in range(1, 8): Square1[i] = i**2 for i in range(1, 11): Square2[i] = i**2 …