replace every special character with a string python code example Example: remove special characters from string in python ''.join(i for i in string if i.isaplha()