Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace

temp_str = 'this is a test'
print(temp_str.replace('is','IS')
print(temp_str)
      
#################### Result ###########################
      
thIS IS a test
this is a test
Source by www.runoob.com #
 
PREVIOUS NEXT
Tagged: #python #replace
ADD COMMENT
Topic
Name
7+4 =