True — Intermediate Playground
Boolean literal representing true/1
Python Playground
Output
Click "Run" to execute your codeEverything that is not falsy is truthy. This includes non-zero numbers, non-empty containers, and all objects.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?