Home >>Python Keywords >Python and Keyword
Python and keyword is used as a logical operator. Logical operators are used to combine the conditional statements. It will return True value only if both statements return True, otherwise it will return False.
Here is an example of Python and keyword:
x = (7 > 2 and 7 < 10)
print(x)
if 7 > 2 and 7 < 10:
print("Both statements are True")
else:
print("At least one of the statements are False")