python supprimer la chaîne de la chaîne
s = 'ab12abc34ba'
print(s.replace('ab', ''))
Mysterious Mole
s = 'ab12abc34ba'
print(s.replace('ab', ''))
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
txt = 'abbacabbd'
print(url.replace('bbd',''))
#output:
abbaca
url = 'abcdc.com'
print(url.replace('.com',''))
import re
url = 'abcdc.com'
url = re.sub('\.com$', '', url)