Python: Why does (“hello” is “hello”) evaluate as True?
If two string literals are equal, they have been put to same
memory location. A string is an immutable entity. No harm can
be done.
If two string literals are equal, they have been put to same
memory location. A string is an immutable entity. No harm can
be done.