Python Eliminar caracteres del final de la cadena
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',''))