remove all instances of something in a streing python code example Example: remove occurrence in string pytthon str="it is icy" print str.replace("i", "")