Python Keywords
Python Keywords
or This is also a logical operator which returns true if anyone operand is true else returns false.
not This is again a logical operator it returns True if the operand is false else returns false.
Elif is a condition statement used with an if statement. The elif statement is executed if the
elif
previous conditions were not true.
Else is used with if and elif conditional statements. The else block is executed if the given
else
condition is not true.
This function is used for debugging purposes. Usually used to check the
assert
correctness of code