Answers for "how to remove substring from string python index"

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

Code answers related to "how to remove substring from string python index"

Python Answers by Framework

Browse Popular Code Answers by Language