You can use the enumerate() function along with max() or min() to get the index of the maximum or minimum item in a list in Python.