Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

is vs == python

The Equality operator (==) compares the values of both the operands 
and checks for value equality. 
Whereas the ‘is’ operator checks whether both the operands refer to the 
same object or not (present in the same memory location).
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
8+2 =