python supprimer la chaîne de la chaîne
s = 'ab12abc34ba'
print(s.replace('ab', ''))
Mysterious Mole
s = 'ab12abc34ba'
print(s.replace('ab', ''))
s = "Earthworms and Python are disgusting!"
s.replace('and Python ', '')
print(s)
#Run the code
result = "Earthworms are disgusting!"
"Str*ing With Chars I! don't want".replace('!','').replace('*','')
txt = 'abbacabbd'
print(url.replace('bbd',''))
#output:
abbaca
url = 'abcdc.com'
print(url.replace('.com',''))
Food = ["Apple", "lemon", "Mango"]
Food.append("Cake")
Food.remove("lemon")
for x in Food:
print(x)