[Python] TypeError: sequence item 0: expected str instance, int found. what should I do to...

Discussão em 'Python' iniciado por Stack, Maio 11, 2025.

  1. Stack

    Stack Membro Participativo

    matrix1=[[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]

    m2="\n".join(["\t".join([ritem for ritem in item]) for item in matrix1])

    print(m2)


    where am i wrong that i receive this error?

    Continue reading...

Compartilhe esta Página