how to delete the occurence of a pattern in a string python code example Example: remove occurence of character from string python >>> "it is icy".replace("i", "") 't s cy'