I'm using Python 3.6.9, I'm confused, why in the code below do I get 2 toggling ids?
In [1]: [id([None]*3) for _ in range(5)]
...:
Out[1]:
[140161829603400,
140161829654920,
140161829603400,
140161829654920,
140161829603400]
From my understanding when creating lists in the loop all lists will have the same IDs, or if done right, you can get independent lists with different IDs. How to explain this behavior?