For example:
In pycharm:
a = 256
b = 256
print(a is b)
>>>True # This is fine.
But!
a = 257
b = 257
print(a is b)
>>>True # This should be False.
In Colaboratory/IDLE/etc.:
a = 256
b = 256
print(a is b)
>>>True # This is fine.
a = 257
b = 257
print(a is b)
>>>False # This is fine.
According to theory:
An integer is referenced in that range, Python will use the cached version of that object. So memory address will be the same.
Expect pycharm this works everywhere.