Might could do something like
string = 'It was 1there...some text, some text' for word in string: if word.isnumeric(): string = string.replace(word, '') print(string)
Output:It was there...some text, some text
Of coarse it would be better suited to make it a function. This will remove all numbers.
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags