Python 'is' vs '==': What's The Difference? | Python Tutorials For Absolute Beginners In Hindi #90

Code as described/written in the video



# == - value equality - Two objects have the same value
# is - reference equality - Two references refer to the same object


# Task:
a =[6, 4 , "34"]
b = [6, 4 , "34"]
print(b is a)


Be the first person to comment!

Comments(0)