Home >>Python Keywords >Python True Keyword

Python True Keyword

Python True Keyword

Python True keyword is a Boolean value and case-sensitive in python, and true is the result of a comparison operation.

Here is an example of Python True Keyword:

print(10 > 8)

Output:
True
Example 2:

print(8 < 10)
print(5 in [1,2,3])
print(8 is 8)
print(10 == 10)
print(8 == 8 or 12 == 13)

Output:
True
False
True
True
True

No Sidebar ads