Why after concatination result changed?
b = "test"+str(1)
a = "test"+str(1)
print(a is b) # False
b2 = "test"+"1"
a2 = "test"+"1"
print(a2 is b2) # True ???
Why after concatination result changed?
b = "test"+str(1)
a = "test"+str(1)
print(a is b) # False
b2 = "test"+"1"
a2 = "test"+"1"
print(a2 is b2) # True ???