>>> a = 257
>>> b = 257
>>> a is b
False
the above code is working as expected in python shell
a = 257
b = 257
print(a is b)
True
the above is the output that prints on a python file
>>> a = 257
>>> b = 257
>>> a is b
False
the above code is working as expected in python shell
a = 257
b = 257
print(a is b)
True
the above is the output that prints on a python file