Mega Code Archive
Categories
/
Python
/
List
Same Object or identical content
S1 = 'spam' S2 = 'spam' print S1 == S2, S1 is S2 S1 = 'a longer string' S2 = 'a longer string' print S1 == S2, S1 is S2