how to delete a single instance of a character in a string python code example Example: remove occurrence in string pytthon str="it is icy" print str.replace("i", "")