DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+5 =
Submit