I have a list that contains "n" elements of type str
.
However, I need to get these elements to be integers. How can I do this?
For example, I have this list here:
trechos = conteudo[2:len(conteudo)]
It turns out that I can not just force it like this:
int(conteudo[2:len(conteudo)])
Because python gives error. How can I make each value integer? And then pass those integer values to a new list?