String Comparison in Python

In the previous article we discussed some of the frequent string operations, now let us look at comparing the values or characters of strings. Python allows various different comparison operators to be allowed for this purpose. Operators for String Comparison in Python Let us examine a program using comparison operators: How does the comparison of … Read more

Identity Comparison Operators in Python

In the previous article we have gone through the logical operator concepts in Python, in this article will look at the identity comparison operators in Python. Identity or identity operators compare the location of two objects in memory and their relation with each other. Utilizing Identity Comparison Operators in Python In Python identity operators are used to determine whether … Read more