TrueExpert Playground

Boolean literal representing true/1

Python Playground
Output
Click "Run" to execute your code

True and False are singletons — every True in your program is the exact same object. CPython interns them like small integers.

Challenge

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