Created
June 17, 2016 13:36
-
-
Save orkaa/1d354af2baea5bc96d182cbef3e04e35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> a = 'foo' | |
>>> b = ''.join(['f', 'o', 'o']) | |
>>> a | |
'foo' | |
>>> b | |
'foo' | |
>>> type(a) | |
<type 'str'> | |
>>> type(b) | |
<type 'str'> | |
>>> a is b | |
False | |
>>> a == b | |
True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment