Question: def replace _ string ( string , char _ to _ replace, char _ replacement ) : Returns a new string where

def replace_string(string, char_to_replace, char_replacement):
"""Returns a new string where a character has been replaced
by another.
Args:
string (str): the string to replace
char_to_replace (str): the character to replace
replacement_char (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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!