Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to remove digits in string in python?

>>> s = '12abcd405'
>>> result = ''.join([i for i in s if not i.isdigit()])
>>> result
'abcd'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #digits #string
ADD COMMENT
Topic
Name
1+5 =