<= (less than or equal to)

a = 22
b = 23
if a <= b:
    print("variable a is less or equal to variable b ")
Description Tests if the value on the left is less than the value on the right or if the values are equivalent.
value1 <= value2
value1int or float
value2int or float
Related > (greater than)
< (less than)
>= (greater than or equal to)
== (equality)
!= (inequality)

Updated on Tue Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.