how to get rid of a character in a str python code example
Example 1: take off character in python string
s = 'abc12321cba'
print(s.replace('a', ''))
Example 2: how to delete specific char in string python
a_string = a_string.replace("d", "")
s = 'abc12321cba'
print(s.replace('a', ''))
a_string = a_string.replace("d", "")