convert int into array of digits python code example Example: python number to array of digits list(map(int, str(678))) [6, 7, 8]