SyntaxFix
Write A Post
Hire A Developer
Questions
Not a one liner but very simple:
buffer = "" some_str = "aas30dsa20" for char in some_str: if not char.isdigit(): buffer += char print( buffer )