how to erase part of string python3 code example
Example 1: take off character in python string
s = 'abc12321cba'
print(s.replace('a', ''))
Example 2: remove part of string python
txt = 'abbacabbd'
print(url.replace('bbd',''))
#output:
abbaca
s = 'abc12321cba'
print(s.replace('a', ''))
txt = 'abbacabbd'
print(url.replace('bbd',''))
#output:
abbaca