Answers for "remove substrings from string python"

3

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
1

remove part of string python

txt = 'abbacabbd'
print(url.replace('bbd',''))

#output:
abbaca
Posted by: Guest on July-16-2020

Code answers related to "remove substrings from string python"

Python Answers by Framework

Browse Popular Code Answers by Language