Write a function called myReplace() that performs a task similar to the string.replace() method. This function should take three parameters: The first, called the content string, can be any string. The second, called the token, should be a string containing a single character which is to be replaced in the content string. The third, should denote the new character(s) that will be in the resulting string. The function should return a new string with the token letter(s) replaced by the new characters. Your function should ensure valid input is provided, and return the original string if not. Note: You may not use the built-in replace() method for this question.

Similar Questions
    1. answers icon 1 answer
  1. Hi,I have to write a method that returns my first name, middle initial, and last name as a single String and call the method in
    1. answers icon 2 answers
  2. URGENT: Can anyone please show me how to write this code in python??Prompt: Recall that when the built-in function float() is
    1. answers icon 0 answers
  3. a procedure or routine that performs a specific task isA a constant B a variable*** C an expression D a function
    1. answers icon 4 answers
more similar questions