Python supprime les caractères de la fin de la chaîne
foo = "test716"
foo = foo[:-3]
print(foo)
# output will be "test"
Kodi4444
foo = "test716"
foo = foo[:-3]
print(foo)
# output will be "test"
txt = 'abbacabbd'
print(url.replace('bbd',''))
#output:
abbaca
url = 'abcdc.com'
print(url.replace('.com',''))