1>>> papa = 'papa is a good man'
2>>> papa.replace('papa', '')
3' is a good man'
1string = "abc123"
2# Method 1
3''.join(char for char in string if char.isdigit())
4
5#Method 2
6import re
7re.sub("[^0-9]", "", string)
1s = "Earthworms and Python are disgusting!"
2s.replace('and Python ', '')
3print(s)
4#Run the code
5result = "Earthworms are disgusting!"