Contact: aviboots(AT)netvision.net.il
39,907 questions
51,839 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 '''