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

Discussão em 'Python' iniciado por Stack, Dezembro 19, 2024.

  1. Stack

    Stack Membro Participativo

    >>> 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?

    Continue reading...

Compartilhe esta Página