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