Löschen Sie bestimmte Zeichen aus einem String -Python
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
Motionless Mole
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 '
a_string = "addbdcd"
a_string = a_string.replace("d", "")
print(a_string)