True

KeywordPython 2.0+Beginner

Boolean literal representing true/1

Quick Info

Documentation
Official Docs
Python Version
2.0+

Learn by Difficulty

Quick Example

python
result = True
print(result)
print(type(result))

if result:
    print("True is truthy")

True is one of Python's two boolean literals. It evaluates as truthy in conditions and equals the integer 1.

Try in Playground

Tags

languagesyntaxcorebooleandatatype

Related Items