Question: 1. Double Alternate Write a function that takes in two lists as parameters and inserts elements of the second list into the first list at

 1. Double Alternate Write a function that takes in two lists
as parameters and inserts elements of the second list into the first

1. Double Alternate Write a function that takes in two lists as parameters and inserts elements of the second list into the first list at alternate positions of two elements of the first list. Example If the first list is 15,7,17,13,11,19] and the second is (12,10,2] the first list should become (5,7,12,17,13,10,11,19,2] and the second list becomes [] (or empty). The elements of the second list should only be inserted when there are positions available in the first list. For example, if the fist list is [1,2,3] and the second list is [4,5,6,7,8] then after the function is called the first list is [1,2,4,3] and the second list will be (5,6,7,8] Return: Nothing but change the lists provided in place. # TODO : complete the function as required # No need to return or print anything.. def double_alt(arri, arr2): pass if -_name__ =="__main__": print('Your personal test cases go below here!')

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!