Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace python enter number of characters

>>> string = "Hello World!"
>>> new_string = string.replace("o", "a")
>>> print(string)
Hello World!
>>> print(new_string)
Hella Warld!
>>> print(string.replace("Hello", "Goodbye"))
Goodbye World!
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #python #enter #number #characters
ADD COMMENT
Topic
Name
2+9 =