[Edit]
+
0
-
0
python split number into individual digits
1 2 3 4 5 6 7def split(number): return [digit for digit in number] num = 12345 print(split(str(num))) # ['1', '2', '3', '4', '5']
1 2 3 4 5 6 7def split(number): return [digit for digit in number] num = 12345 print(split(str(num))) # ['1', '2', '3', '4', '5']