def solution(my_string): answer = [] for i in my_string: if i.isdigit(): answer.append(int(i)) answer.sort() return answer
isdigit() : 숫자인지 확인하는 함수