Question: Please write this function in python. 7 pair recursive (head, head2) This function takes two lists, which may be of different lengths (either or both

Please write this function in python.

Please write this function in python. 7 pair recursive (head, head2) This

7 pair recursive (head, head2) This function takes two lists, which may be of different lengths (either or both of them might be empty). It builds new ListNode objects, where the value of each one is a tuple, consisting of one value from the first list, and one value from the second list, in the same order as they existed in those input lists. If the lists are different lengths, then the length of the returned list will be equal to the length of the shorter one. This function must be recursive, but is not required to obey the Annoying Requirements. 7.1 EXAMPLE Suppose that the input lists are as follows: head1: 123 -> 456 -> 789 head2: "abc" -> "def" -> "ghi" -> "jk1" then the list that you return must look like this: (123,"abc") -> (456,"def") -> (789,"ghi")

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!