Python - Operators and Expression Evaluation
Given this code:
Why might the output be
def check_identity(a, b):
return a is b
x = 1000
y = 1000
print(check_identity(x, y))Why might the output be
False even though x == y is True?