Tire o personagem na corda Python
s = 'abc12321cba'
print(s.replace('a', ''))
Disturbed Dove
s = 'abc12321cba'
print(s.replace('a', ''))
s = 'ab12abc34ba'
print(s.replace('ab', ''))
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
#you can use replace function to remove specific word.
>>> message = 'you can use replace function'
>>> message.replace('function', '')
>>>'you can use replace '
s = "Earthworms and Python are disgusting!"
s.replace('and Python ', '')
print(s)
#Run the code
result = "Earthworms are disgusting!"
"Str*ing With Chars I! don't want".replace('!','').replace('*','')