s = 'abc12321cba'
print(s.replace('a', ''))
=>s
out:bc12321cb
s = "aabbcadcba"
print(s.replace("a", "", 1) # removes only one "a" from the string.
out -> abbcadcba
print(s.replace("a", "") # removes all the "a"s from the string.
out -> bbcdcb
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
"Str*ing With Chars I! don't want".replace('!','').replace('*','')
varible.replace(letter, "") # blank quotes.
# e.g.
s = "Hello World"
print(s.replace('e', ""))
# Hllo World
# great for data cleansing
string.replace(old character, new character, count)
# Python program to remove single occurrences of a character from a string
text= 'ItsMyCoode'
print(text.replace('o','',1))
s = "Fuuad"
res = s.replace('u','',1)
print(res)
str1 = "abcdefghij"
list1 = list(str1)
print(list1)