typeError: isinstance() arg 2 must be a type or tuple of types >>>

python

Solution

You've stomped on `list` by assigning to a local variable of the same name. Don't do that.

Problem

``` >>> names=['jill','jack'] >>> isinstance(names,list) Traceback (most recent call last): File "<pyshell#291>", line 1, in <module> isinstance(names,list) TypeError: isinstance() arg 2 must be a type or tuple of types >>> ``` Am I missing something here?

Original source