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!



No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here

Course Content