Cómo eliminar todos los caracteres de una cadena en Python
s = 'abc12321cba'
print(s.replace('a', ''))
Disturbed Dove
s = 'abc12321cba'
print(s.replace('a', ''))
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
text = input()
sep = '...'
stripped = text.split(sep, 1)[0]
print(stripped)
>>> string = 'This is a string, with words!'
>>> string.split()
['This', 'is', 'a', 'string,', 'with', 'words!']
a_string = "addbdcd"
a_string = a_string.replace("d", "")
print(a_string)
import re
inputt = input()
# write the characters you want to remove in square brackets
line = re.sub('[ie]', '', inputt)
print(line)