Python provides a variety of on operators]] to evaluate conditions our code. One of the most commonly used operators is the double equals sign (), which checks if two values are equal. Another useful comparison operator is the not equals sign (), which evaluates if two values are not equal. Additionally, we have the greater than () and less than () operators to compare the size of two values. The greater than or equal to () and less than or equal to () operators are also available for inclusive comparisons.
To check if a value is present in a container, we can use the 'in' operator. On the other hand, if we want to check if a value is not present in a container, we can use the '' operator. Lastly, the 'is' keyword is used to compare object identity, checking if two variables refer to the same object in memory.
Keywords
not in | > | < | <= | >= | == | != | compar[[is | in |