>>> 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?
You've stomped on list
by assigning to a local variable of the same name. Don't do that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With