[Python] Can I store strings in python array?

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

  1. Stack

    Stack Membro Participativo

    from array import *
    val=array('u',["thili","gfgfdg"])
    print(val)


    When I compiled above python code, the compiler showed an error.

    [​IMG]

    What is the problem in my code.can not store strings in python array?

    Continue reading...

Compartilhe esta Página