Sobes.tech
Junior — Senior

Investigation of the is operator and integer interning in Python

livecode

Task condition

Analyze how Python compares integer objects using the 'is' operator. What will be the output of the following code?

x = 100
y = x
y += 1000

print(x is 100)
print(y is 1100)