Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

difference between == and is

string = "69"
integer = 69

print(string is integer) # Prints False, as the values are the same but NOT the datatypes
print(string == integer) # Prints False, as the values are the same (a type check is not performed with ==)
 
PREVIOUS NEXT
Tagged: #difference
ADD COMMENT
Topic
Name
7+4 =