python int to list of digits code example
Example 1: python make integer into a list
res = [int(x) for x in str(num)]
Example 2: splitting a number into digits python
>>> n = 43365644
>>> [int(d) for d in str(n)]
[4, 3, 3, 6, 5, 6, 4, 4]
>>>
res = [int(x) for x in str(num)]
>>> n = 43365644
>>> [int(d) for d in str(n)]
[4, 3, 3, 6, 5, 6, 4, 4]
>>>