Python remove unwanted characters [string] [closed]

How can the following python string be stripped?

Current output:


Wanted output:


Read more here:

Content Attribution

This content was originally published by programmeurNED at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: