Answers for "python how to remove letters in a string"

2

remove substring from string python

s = "Earthworms and Python are disgusting!"
s.replace('and Python ', '')
print(s)
#Run the code
result = "Earthworms are disgusting!"
Posted by: Guest on July-31-2021
2

how to delete specific char in string python

a_string = a_string.replace("d", "")
Posted by: Guest on March-20-2021

Code answers related to "python how to remove letters in a string"

Python Answers by Framework

Browse Popular Code Answers by Language