Question: 1. (25 pts) Consider a sequenced list (or inversed sequence list) and an inserted number. Define a function with two arguments, one is the sequenced

 1. (25 pts) Consider a sequenced list (or inversed sequence list)

1. (25 pts) Consider a sequenced list (or inversed sequence list) and an inserted number. Define a function with two arguments, one is the sequenced list, another one is the inserted number. Please insert the number in the list with right place, and output both the new list and the old list. Example: Input List [1,2,4,9,17,25,53] InsertNum 13 Output: NewList[1,2,4,9,13,17, 25 , 53] OldList- [1, 2,4,9,17, 25,53 ] Note that you are required to use loop to find the position, manually finding the position will get zero point

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!