Python usuń znaki z końca sznurka
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',''))