Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to remove integer from string in python
Hayze
Programming language:
Python
2021-04-01 21:48:15
0
Q:
how to remove integer from string in python
user49170
Code:
Python
2021-06-02 22:31:08
>>> s = '12abcd405' >>> result = ''.join([i for i in s if not i.isdigit()]) >>> result 'abcd'
2
Tags
string
python
remove
int
how
Related
how to make an int into a string python
extract number from string in python
make int into string python
remove character from string python
python convert character to integer
remove part of string python
remove from string python
cut 0s on string python
python remove letters from string
python how to remove n from string
how to turn a string into an integer python
how to get a int from string python
remove a part of a string python
take off character in python string
remove n from string python
python string trim
python get int from string
python remove string from string
New to Communities?
Join the community