1
I have a problem that, when iterating over a string and adding only the numbers in a list, a number (for example 13) eventually becomes ['1', '3'].
How to get around this and make the number complete, as in ['13']?
Note that there is no space between digits to use the split.
teste = 'A2B4C13'
listaNumeros = []
for numero in teste:
if numero.isnumeric():
listaNumeros.append(numero)
print(listaNumeros)