I want to search my string for single digits, for every different single digit in python. If it contains 1 in want to add 1 to another list and same for other digits.
//single-digit found
ar.append(single-digit)
example-string: ap126ks8
ar=[1,2,6,8]