This can be done quite easily if you:
-
Use
strto convert the number into a string so that you can iterate over it. -
Use a list comprehension to split the string into individual digits.
-
Use
intto convert the digits back into integers.
Below is a demonstration:
>>> n = 43365644
>>> [int(d) for d in str(n)]
[4, 3, 3, 6, 5, 6, 4, 4]
>>>