remove occurences inside string pyton code example
Example 1: remove occurrence in string pytthon
str="it is icy"
print str.replace("i", "")
Example 2: remove occurence of character from string python
>>> "it is icy".replace("i", "")
't s cy'
str="it is icy"
print str.replace("i", "")
>>> "it is icy".replace("i", "")
't s cy'