Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace text

#use (variable name).replace('something', 'smth')
#Example: 
str = "codegrapper"
str.replace('grapper', 'grepper')
print(str)
#output: codegrepper
Source by datagy.io #
 
PREVIOUS NEXT
Tagged: #python #replace #text
ADD COMMENT
Topic
Name
2+9 =