[Edit]
+
0
-
0
python split number into individual digits
1 2 3 4 5number = 1234 result = [int(digit) for digit in str(number)] print(result) # [1, 2, 3, 4]
1 2 3 4 5number = 1234 result = [int(digit) for digit in str(number)] print(result) # [1, 2, 3, 4]