If the same element occurs twice in the list, it will return the index of the first occurrence of the list element. This method returns the index position of the element or items in the list, which is in numerical value.
In Python, the list index() method is defined to search the given element or item in the list.