In [1]:
M = 'x'
M += 'yz'
N = 'xyz'
In [2]:
M == N
Out[2]:
True
In [3]:
M is N
Out[3]:
False
In [4]:
A = 'pqr'
B = 'pqr'
A is B
Out[4]:
True