remove all instances of character from string python code example
Example 1: remove occurrence in string pytthon
str="it is icy"
print str.replace("i", "")
Example 2: how to remove all characters from a string in python
s = 'abc12321cba'
print(s.replace('a', ''))