Special Python Operators : in & is
in operator
The power of inbuilt operators in Python doesn’t stop surprising me. Perhaps one of the most powerful operators I have come across is the operator: in
This operator returns a boolean value.
Get Bharath Urs’s stories in your inbox
Join Medium for free to get updates from this writer.
It can be used with a str or a list.
list
str
is operator
Similar to in, is returns a boolean. is compares two variables to tell us if the id is the same:
a = 42
b = 13
if (a is b):
pass





