Real Python Tutorials
Comparing Python Objects the Right Way: "is" vs "=="
In this quick and practical course, you'll learn when to use the Python is, is not, == and != operators. You'll see what these comparison operators do under the hood, dive into some quirks of object identity and interning, and define a custom class.
Not Sure Where to Start?
At Real Python you can learn all things Python from the ground up. If you’re wondering where to begin your Python journey, click the button below and we’ll give you some guidance:
🐍 Python Tricks 💌
Get a short & sweet Python Trick delivered to your inbox every couple of days. No spam ever. Unsubscribe any time. Curated by the Real Python team.