Sobes.tech
Junior — Senior

Determining whether two variables point to the same string object

livecode

Task condition

In Python, the is operator checks whether two objects are in the same memory location. See what output we get if one string is assigned to another variable.

s1 = 'Hello World!'
s2 = s1

print(s1 is s2)
Determining whether two variables point to the same… - sobes.tech