Question: The index(self, item) method in the Ordered Linked List returns the position of item in the list. It needs the item and returns the index

The index(self, item) method in the Ordered Linked List returns the position of item in the list. It needs the item and returns the index (assuming the first element in the Linked List is at index 0). We may assume that the item is in the list for this problem. Write the method index(self, item) in the space below. You may assume your method is already within the Ordered Linked List class (no need to define the class)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
