Печать только номера из String Python

a='a345g5'



for i in a:
    if int(i.isnumeric()):
        print(i,end=' ')
Crazy Capuchin