Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove substring from string python

s = "Earthworms and Python are disgusting!"
s.replace('and Python ', '')
print(s)
#Run the code
result = "Earthworms are disgusting!"
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #remove #substring #string #python
ADD COMMENT
Topic
Name
8+3 =