Write a function that returns a replace values in string with values provided


Topic: Write a function that returns a replace values in string with values provided

Solution

def replace_values(s:str, old, new)->str:
    s.replace(old, new)



List all Python Programs