Sunday, May 17, 2015

Greater Than > - Python Tutorial

>



 


The > simple is used as a comparison operator in Python.  If the object on the left of the > is greater than the object on the right then Python will return True.  If the object on the left of > is less than the object on right then Python will return False.


> Examples


 Examples" ># > Examples

>>> 2 > 1
True
>>> 1 > 2
False

If you have any questions about the Python > leave a comment below.



No comments:

Post a Comment