Answers for "substitute char python"

0

python replace character in string

text = 'Mohammad_Sadegh_Eslahi'
text = text.replace('_', ' ')
print(text)
>>>
'Mohammad Sadegh Eslahi'
Posted by: Guest on December-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language