True — Expert Playground
Boolean literal representing true/1
Python Playground
Output
Click "Run" to execute your codeTrue 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?