Home >>Python Keywords >Python or Keyword
Python or keyword is used to combine a conditional statement. ‘or’ keyword is a logical operator. If one of the statements is true then, return value will be true, otherwise returns false.
Here is an example of Python or Keyword:
z = (8 > 10 or 5 > 10)
print(z)
if 8 > 10 or 5 > 10:
print("At least one of the statements are True")
else:
print("None of the statements are True")