A logical operator is a symbol or word used to link two or more expressions in such a way that the value of the generated compound expression depends solely on that of the original expression and the operator’s meaning. Some of the familiar logical operators are AND, OR and NOT. All these logical operator returns boolean value
AND Keyword
It is one of the logical operator used to combine conditional statements.
It returns True only if both of the conditions are True else it returns False.
Syntax –
condition1 and condition2
If both conditions in given code is true then if statement executed otherwise else statement executed.
Login/Signup to comment