how to remove certain characters from a string python without re code example Example: take off character in python string s = 'abc12321cba' print(s.replace('a', ''))