is — Easy Playground
Identity operator; tests whether two variables reference the same object
Python Playground
Output
Click "Run" to execute your code'is' tests identity (same object in memory), not equality. Always use 'is' for None, True, and False comparisons.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?