Current location - Loan Platform Complete Network - Bank loan - What are the logical operators of python?
What are the logical operators of python?
There are four main types:

1, comparison operator

Returns True if true, otherwise returns False.

Note: Only "= =,! = "Compare.

2. Member operators

The keyword of the member operator is "in", which determines whether an element is in the list (container).

3. Identity operator:

Identification operators are used to compare whether two objects are the same object. Identity operators are mainly judged by "yes, no".

4. Boolean operator:

There are three Boolean operators in Python: and, or, not.