Contact: aviboots(AT)netvision.net.il
41,321 questions
53,836 answers
573 users
s = "1234p345y435th345on56789" result = ''.join([ch for ch in s if not ch.isdigit()]) print(result) ''' run: python '''
s = "1234p345y435th345on56789" new_s = [] for ch in s: if not ch.isdigit(): new_s.append(ch) result = ''.join(new_s) print(result) ''' run: python '''