SyntaxFix
Write A Post
Hire A Developer
Questions
You could try:
print ''.join(ch for ch in some_string if ch.isalnum())