Product SiteDocumentation Site

4.3. Relational Operators

You can use the following operators as relational operators
Relational Operators
Operator: <
Meaning: Is less than
Operator: <=
Meaning: Is less than or equal to
Operator: >
Meaning: Is greater than
Operator: >=
Meaning: Is greater than or equal to
Operator: ==
Meaning: Is equal to
Operator: !=
Meaning: Is not equal to

Some examples
 
>>> 1 < 2
True
>>> 3 > 34
False
>>> 23 == 45
False
>>> 34 != 323
True

// operator gives the floor division result
 
>>> 4.0 // 3
1.0
>>> 4.0 / 3
1.3333333333333333