Question : replace sunstring
Answered by : sachin-verma
text = 'bat ball'
# replace b with c
replaced_text = text.replace('b', 'c')
print(replaced_text)
# Output: cat call
Source : | Last Update : Sat, 10 Dec 22
Answered by : sachin-verma
text = 'bat ball'
# replace b with c
replaced_text = text.replace('b', 'c')
print(replaced_text)
# Output: cat call
Source : | Last Update : Sat, 10 Dec 22