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