str="it is icy" print str.replace("i", "")
# Python program to remove all occurrences of a character from a string text= 'Welcome, to, Python, World' print(text.replace(',',''))
>>> "it is icy".replace("i", "") 't s cy'