Logical Operators

Logical Operators are and, or, and not.

Let's say we have to find out if the number 13 is between 10 and 20.

Now, let's say our number "x" is still 13, but now we need to find out if our number is less than 14 or greater than 15.

It is True because our number "x" meets at least one condition, which is that it is less than 14.

Here is another condition:

This line checks if "x" is not greater than 15; as "x" is less than 15, our output would be True.