DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+1 =
Submit