Why I cant pass keyword argument to list.index() method?
问题 I was checking the documentation of list.index() method in python, what I saw is : >>> help(list().index) Help on built-in function index: index(value, start=0, stop=9223372036854775807, /) method of builtins.list instance Return first index of value. Raises ValueError if the value is not present. When I ran the code below gave me some error. >>> l=[1,2,3,43,45,5,6,6] >>> l.index(43,start=1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: index() takes no