How to split an integer into an array of digits? May 27, 2022 by Tarik >>> [int(i) for i in str(12345)] [1, 2, 3, 4, 5]