is — Advanced Playground
Identity operator; tests whether two variables reference the same object
Python Playground
Output
Click "Run" to execute your codeCPython interns small integers, short strings, and some tuples. This is an implementation detail — never rely on it. Use 'is' only for documented singletons (None, True, False).
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?