subject

Write a function, named replace, that has three parameters: (1) a string named original, (2) a single-character string, named old, representing the character to be replaced, (3) another single-character string, named new, representing the character to be used for replacement. The function should return a new string where every occurrence of old in the passed-in string is replaced by new. You should write a loop to implement such a functionality.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, joedawg50
What is added to the < meta > tag to describe the encoding type?
Answers: 1
image
Computers and Technology, 22.06.2019 07:00, Jasten
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
image
Computers and Technology, 22.06.2019 16:30, jngonzo1226
Which of the following statements best describes it careers?
Answers: 2
image
Computers and Technology, 23.06.2019 04:31, hargunk329
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
You know the right answer?
Write a function, named replace, that has three parameters: (1) a string named original, (2) a singl...

Questions in other subjects:

Konu
Mathematics, 05.03.2020 08:13