how to find the index of a class type object in a list python code example Example: python index of item in list list.index(element)