Computer Science
Answer
Similarity:
in operator and index( ) both search for a value in tuple.
Difference:
in operator returns true if element exists in a tuple otherwise returns false. While index( ) function returns the index of an existing element of the tuple. If the given element does not exist in tuple, then index( ) function raises an error.