there is a need to extract more than the first order number from a string / list without using standard split join methods and all that. Up to ten, a comparison with numbers = '0123456789' is allowed, but what to do next? help me!) my version of the code is lower, but it does not distinguish 10 (
a = input() b = [] numbers = '0123456789' for i in a: if i in numbers: b.append(int(i)) else: continue print(b) вход: 3,5,7,9,10 выход: [3, 5, 7, 9, 1, 0]