You can use https://docs.python.org/3/library/functions.html#func-list to turn strings into lists. If you do list(string), the result is a list in which each element is a character of the string. Ex:print(list('teste'))
This prints:['t', 'e', 's', 't', 'e']So just do this for each element of your list, and go adding these lists to your matrix (being that "matrix" is nothing more than a list of lists: a list in which each element is also a list):lista = ['teste', 'teste', 'teste', 'teste', 'teste']
matriz = [list(palavra) for palavra in lista]
print(matriz)
This prints:['t', 'e', 's', 't', 'e'], ['t', 'e', 's', 't', 'e'], ['t', 'e', 's', 't', 'e'], ['t', 'e', 's', 't', 'e'], 't', 'e'Note that I used the syntax https://docs.python.org/3/whatsnew/2.0.html#list-comprehensions , which is more succinct and https://pt.stackoverflow.com/q/192343/112052 . The above code is equivalent to:lista = ['teste', 'teste', 'teste', 'teste', 'teste']
matriz = []
for palavra in lista:
matriz.append(list(palavra))
print(matriz)