Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

splitting a number into digits python

>>> n = 43365644
>>> [int(d) for d in str(n)]
[4, 3, 3, 6, 5, 6, 4, 4]
>>>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #splitting #number #digits #python
ADD COMMENT
Topic
Name
9+1 =