RosettaCodeData/Task/Copy-a-string/Python/copy-a-string-2.py

7 lines
138 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
>>> a = 'hello'
>>> b = ''.join(a)
>>> a == b
True
>>> b is a ### Might be True ... depends on "interning" implementation details!
False