SlideShare a Scribd company logo
1 of 1
Download to read offline
Write a program which repeatedly calls a function named replaceIt() as long as the user wishes
to. replaceIt() will have 3 parameters: originalList, old, and new. The function replaces all
occurrences of old with new in list originalList. You may NOT use the built-in function
replace()!!! Write your own.
Solution
ReplaceIt(originalList,old,new){
}

More Related Content

More from ahntagencies

Cell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdf
Cell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdfCell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdf
Cell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdf
ahntagencies
 
A(n) is a method of interacting with a PC by manipulating visual ele.pdf
A(n)  is a method of interacting with a PC by manipulating visual ele.pdfA(n)  is a method of interacting with a PC by manipulating visual ele.pdf
A(n) is a method of interacting with a PC by manipulating visual ele.pdf
ahntagencies
 
When Gregor Mendel was developing his ideas of inheritance of cha.pdf
When Gregor Mendel was developing his ideas of inheritance of cha.pdfWhen Gregor Mendel was developing his ideas of inheritance of cha.pdf
When Gregor Mendel was developing his ideas of inheritance of cha.pdf
ahntagencies
 
What are the implications of Darwins ideas for the traditional .pdf
What are the implications of Darwins ideas for the traditional .pdfWhat are the implications of Darwins ideas for the traditional .pdf
What are the implications of Darwins ideas for the traditional .pdf
ahntagencies
 
The process of DNA replication creates a particular problem for repl.pdf
The process of DNA replication creates a particular problem for repl.pdfThe process of DNA replication creates a particular problem for repl.pdf
The process of DNA replication creates a particular problem for repl.pdf
ahntagencies
 

More from ahntagencies (20)

Consider the simple analog signal defined by x(t) = sin(2700t) shown.pdf
Consider the simple analog signal defined by x(t) = sin(2700t) shown.pdfConsider the simple analog signal defined by x(t) = sin(2700t) shown.pdf
Consider the simple analog signal defined by x(t) = sin(2700t) shown.pdf
 
Cell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdf
Cell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdfCell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdf
Cell adhesion, both cell-cell and cell-ECM, can influence whether a c.pdf
 
A(n) is a method of interacting with a PC by manipulating visual ele.pdf
A(n)  is a method of interacting with a PC by manipulating visual ele.pdfA(n)  is a method of interacting with a PC by manipulating visual ele.pdf
A(n) is a method of interacting with a PC by manipulating visual ele.pdf
 
You are about to perform a clean install of Windows 7 on a brandnew .pdf
You are about to perform a clean install of Windows 7 on a brandnew .pdfYou are about to perform a clean install of Windows 7 on a brandnew .pdf
You are about to perform a clean install of Windows 7 on a brandnew .pdf
 
Write the equation of a 4th degree polynomial function with the follo.pdf
Write the equation of a 4th degree polynomial function with the follo.pdfWrite the equation of a 4th degree polynomial function with the follo.pdf
Write the equation of a 4th degree polynomial function with the follo.pdf
 
Which, of the below choices of inference rules, is used to show that.pdf
Which, of the below choices of inference rules, is used to show that.pdfWhich, of the below choices of inference rules, is used to show that.pdf
Which, of the below choices of inference rules, is used to show that.pdf
 
Which of the following protocols is used for router multicastingA.pdf
Which of the following protocols is used for router multicastingA.pdfWhich of the following protocols is used for router multicastingA.pdf
Which of the following protocols is used for router multicastingA.pdf
 
Which of the following isare not produced by homosporous plants [se.pdf
Which of the following isare not produced by homosporous plants [se.pdfWhich of the following isare not produced by homosporous plants [se.pdf
Which of the following isare not produced by homosporous plants [se.pdf
 
When Gregor Mendel was developing his ideas of inheritance of cha.pdf
When Gregor Mendel was developing his ideas of inheritance of cha.pdfWhen Gregor Mendel was developing his ideas of inheritance of cha.pdf
When Gregor Mendel was developing his ideas of inheritance of cha.pdf
 
what kind of short tandem repeats DNA markers can be used for tracin.pdf
what kind of short tandem repeats DNA markers can be used for tracin.pdfwhat kind of short tandem repeats DNA markers can be used for tracin.pdf
what kind of short tandem repeats DNA markers can be used for tracin.pdf
 
What is the job of a layout managerTo render user interface compo.pdf
What is the job of a layout managerTo render user interface compo.pdfWhat is the job of a layout managerTo render user interface compo.pdf
What is the job of a layout managerTo render user interface compo.pdf
 
Using the Bernoulli method, solve the differential equation t^2 dyd.pdf
Using the Bernoulli method, solve the differential equation t^2 dyd.pdfUsing the Bernoulli method, solve the differential equation t^2 dyd.pdf
Using the Bernoulli method, solve the differential equation t^2 dyd.pdf
 
What are the implications of Darwins ideas for the traditional .pdf
What are the implications of Darwins ideas for the traditional .pdfWhat are the implications of Darwins ideas for the traditional .pdf
What are the implications of Darwins ideas for the traditional .pdf
 
What are the factors that underlie the observation that EBV infectio.pdf
What are the factors that underlie the observation that EBV infectio.pdfWhat are the factors that underlie the observation that EBV infectio.pdf
What are the factors that underlie the observation that EBV infectio.pdf
 
What is an advantage of the hanging drop method verses simple sta.pdf
What is an advantage of the hanging drop method verses simple sta.pdfWhat is an advantage of the hanging drop method verses simple sta.pdf
What is an advantage of the hanging drop method verses simple sta.pdf
 
What are key factors to consider when selecting a flow sensorSo.pdf
What are key factors to consider when selecting a flow sensorSo.pdfWhat are key factors to consider when selecting a flow sensorSo.pdf
What are key factors to consider when selecting a flow sensorSo.pdf
 
The process of DNA replication creates a particular problem for repl.pdf
The process of DNA replication creates a particular problem for repl.pdfThe process of DNA replication creates a particular problem for repl.pdf
The process of DNA replication creates a particular problem for repl.pdf
 
The lifetime T of a certain device (in 1000 hour units) has the expo.pdf
The lifetime T of a certain device (in 1000 hour units) has the expo.pdfThe lifetime T of a certain device (in 1000 hour units) has the expo.pdf
The lifetime T of a certain device (in 1000 hour units) has the expo.pdf
 
The Federal Reserve controls the nations money supply by using var.pdf
The Federal Reserve controls the nations money supply by using var.pdfThe Federal Reserve controls the nations money supply by using var.pdf
The Federal Reserve controls the nations money supply by using var.pdf
 
Suppose S is a set people, and R is the following relation on S aRb.pdf
Suppose S is a set people, and R is the following relation on S aRb.pdfSuppose S is a set people, and R is the following relation on S aRb.pdf
Suppose S is a set people, and R is the following relation on S aRb.pdf
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 

Write a program which repeatedly calls a function named replaceIt() a.pdf

  • 1. Write a program which repeatedly calls a function named replaceIt() as long as the user wishes to. replaceIt() will have 3 parameters: originalList, old, and new. The function replaces all occurrences of old with new in list originalList. You may NOT use the built-in function replace()!!! Write your own. Solution ReplaceIt(originalList,old,new){ }