What is the Difference between the == (Equality) and is (Identity) operators in Python?
This is a question that was asked to me in one of the interviews I attended for a Python developer position. This is something that a lot of beginner and some intermediate Python developers are not aware of, or even if they do know the concept, a lot of people don't know how to articulate this properly in an interview settings.
So in this video we are going to take a look at the difference between equality and identity through examples.
Python Interview Questions Series:
• Python Interview Questions Series - Beginn...
Connect with me on LinkedIn:
/ sukanta-roy-448a5856
Timestamps:
0:00 - Introduction
1:33 - What does == check for?
3:21 - Code example for == (Equality) in python
4:54 - What does is check for?
5:50 - Code example for is (Identity) in Python
Please like and subscribe if you like the content.