Source Code:
(back to article)
string1 = "Hello" string2 = "Hello" string3 = "".join(["H", "e", "l", "l", "o"]) print(string1 is string2) # True print(string1 is string3) # False
Result:
Report an issue