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

7 lines
138 B
Python
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
>>> a = 'hello'
>>> b = ''.join(a)
>>> a == b
True
>>> b is a ### Might be True ... depends on "interning" implementation details!
False