python remove all instances of a character from a string code example Example: how to remove all characters from a string in python s = 'abc12321cba' print(s.replace('a', ''))