NoneExpert Playground

Represents the absence of a value; Python's null equivalent

Python Playground
Output
Click "Run" to execute your code

'is None' compiles to a fast pointer comparison. '== None' calls __eq__ which can be overridden, making it both slower and potentially incorrect.

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?