Mega Code Archive

 
Categories / Python Tutorial / Operator
 

Standard Type Object Identity Comparison Operators

a = [ 5, 'hat', -9.3] b = a print a is b print a is not b b = 2.5e-5 print b print a print a is b print a is not b