how to check the index of an object python code example Example: python index of item in list list.index(element)