“dividindo um número em dígitos python” Respostas de código

dividindo um número em dígitos python

>>> n = 43365644 
>>> digits = [int(x) for x in str(n)]
>>> digits
[4, 3, 3, 6, 5, 6, 4, 4]
>>> lst.extend(digits)  # use the extends method if you want to add the list to another
Cypher

dividindo um número em dígitos python

>>> n = 43365644
>>> [int(d) for d in str(n)]
[4, 3, 3, 6, 5, 6, 4, 4]
>>>
Cypher

Respostas semelhantes a “dividindo um número em dígitos python”

Perguntas semelhantes a “dividindo um número em dígitos python”

Mais respostas relacionadas para “dividindo um número em dígitos python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código