In Python, the following operators are available for the conditions.

Comparision operators     
< less
<= less equal
> greater
>= greater equal
!= or <> not equal
== equal

These comparison operators can be combined with the following boolean operators:

Boolean operators
and AND
or OR
not NOT

Example:

(a == 2 or b >= 2) and c != 3

Last modified: Monday, 28 October 2019, 7:18 PM