remove given char from string code example
Example 1: delete certain characters from a string python
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
Example 2: remove occurrence in string pytthon
str="it is icy"
print str.replace("i", "")