Youth python competition knowledge point 4--if conditional statement and logical operation

Knowledge points of the youth python competition--if conditional statement and logical operation

comparison operator

Greater than, if the value before > is greater than the value after, return True, otherwise return False.
< is less than, returns True if the value preceding the < is less than the value following, otherwise returns False.
== equals, returns True if the values ​​on both sides of == are equal, otherwise returns False.
= Greater than or equal to (equivalent to ≥ in mathematics), if the value before >= is greater than or equal to the value behind, return True, otherwise return False.
<= is less than or equal to (equivalent to ≤ in mathematics), if the value before <= is less than or equal to the value behind, return True, otherwise return False.
!= Not equal (equivalent to ≠ in mathematics), if the values ​​on both sides of != are not equal, return True

Guess you like

Origin blog.csdn.net/fqfq123456/article/details/131856302