Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace() python

#our text
text='Hello there how may I help you!'
     #replacing ("THIS" with "THIS") 
replaced_text=text.replace("!", "?")
print(replaced_text)
#output
"Hello there how may I help you?"
Source by www.runoob.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
5+5 =