Tuesday, May 19, 2015

Less Than or Equal to


Less Than or Equal to <=


The less than or equal to <= comparison operator checks if the object on left is less than or equal to the object on the right and if it is then Python returns True.  If the object on the left is greater than the right then Python will return False.


Less Than or Equal to <= Examples


#Less Than or Equal to <=

>>> 4 <= 5
True
>>> 5 <= 5
True
>>> 6 <= 5
False

If you have any questions about less than or equal to <= leave a comment below so we can assist you.



No comments:

Post a Comment