remove specific thing from string python code example
Example 1: remove substring python
>>> papa = 'papa is a good man'
>>> papa.replace('papa', '')
' is a good man'
Example 2: delete certain characters from a string python
for char in line:
if char in " ?.!/;:":
line.replace(char,'')