[Python] I was running a python program and I got an error saying expected type 'Sized', got...

Discussão em 'Python' iniciado por Stack, Fevereiro 5, 2025.

  1. Stack

    Stack Membro Participativo

    d_n_a = ["A", "T", "G", "C"]
    is_not_dna = not d_n_a
    if len(is_not_dna) > 0:
    print(True)
    else:
    print(False)


    Expected type 'Sized', got 'bool' instead:54
    ​

    I was expecting it to return a false value as long as the character is not in d_n_a although I'm quite new to Python so I was just testing it out.

    Continue reading...

Compartilhe esta Página