DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to remove integer from 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
#integer
#string
#python
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit