I have 2 variables in python as mentioned below and both have same integer values
>>> a = 256
>>> b = 256
When I compare them, I get True as mentioned below
>>> a is b
True
but again when I compare other 2 equal variables I get false
c = 257
d = 257
c is d
False
Is there any problem in python Interpreter?
I didn't understood the logic behind it