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