True — Easy Playground
Boolean literal representing true/1
Python Playground
Output
Click "Run" to execute your codeTrue is one of Python's two boolean literals. It evaluates as truthy in conditions and equals the integer 1.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?