Dunder methods power most operators in Python as well as some of the built-in functions. Dunder methods are a contract between the person who made a class and Python itself.| www.pythonmorsels.com
In Python we care about the behavior of an object more than the type of an object. We say, "if it looks like a duck and walks like a duck, it's a duck." This idea is called duck typing.| www.pythonmorsels.com
Sign up for Python Morsels to improve your Python skills in just 60 minutes every week.| www.pythonmorsels.com
Sign in to your Python Morsels account.| www.pythonmorsels.com
Equality checks whether two objects represent the same value. Identity checks whether two variables point to the same object.| www.pythonmorsels.com