I was testing something out when I found this strange behavior of IS operator. would like to know Why it's giving different outputs.
a =5
b=5
a is b
True
a =10
b =10
a is b
True
a =-5
b =-5
a is b
True
a = -10
b = -10
a is b
False
for all positive integers, a and b came out to be True. in case of negative integers. till -5 I got true, after that it was false for all negative integers