Same Object or identical content : List Compare : List PYTHON examples


PYTHON examples » List » List Compare »

 

Same Object or identical content


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

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo List
» List Compare