Why does python store all the numbers up to 256 or 2^8 at static points in memory?
>>> id(2**8) == id(2**8), id(2**8+1) == id(2**8+1)
(True, False)
Why does python store all the numbers up to 256 or 2^8 at static points in memory?
>>> id(2**8) == id(2**8), id(2**8+1) == id(2**8+1)
(True, False)