string letter remove in python code example
Example 1: remove from string python
"Str*ing With Chars I! don't want".replace('!','').replace('*','')
Example 2: remove a char in a string python
s = 'abc12321cba'
print(s.replace('a', ''))
=>s
out:bc12321cb