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