Question: def replace _ string ( string , char _ to _ replace, char _ replacement ) : Returns a new string where
def replacestringstring chartoreplace, charreplacement:
Returns a new string where a character has been replaced
by another.
Args:
string str: the string to replace
chartoreplace str: the character to replace
replacementchar str: the character to replace with
Returns:
str: The string where the replacement was made
how made the code manualy without use fonction replace with the information above?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
