Write a function that removes all special characters


Topic: Write a function that removes all special characters

Solution

def clean_str(s):
    import re
    return re.sub('[^A-Za-z0-9]+', '', s)



List all Python Programs