Question: in python please Question 3 Not complete Write a function named zip_lists(listi, list2) that takes two integer lists and returns a single integer list that

 in python please Question 3 Not complete Write a function named

in python please

Question 3 Not complete Write a function named zip_lists(listi, list2) that takes two integer lists and returns a single integer list that contains all the elements of the two lists zipped together. The two lists should be merged like a zip, that is, one item from listi one followed by one item from list2, then another from each and so on. Marked out of 1.00 Flag question Notes: If one list is longer than the other then, once one list runs out of items, the rest of the other list is added to the result. If both lists are empty then an empty list should be returned. For example: Test Result [1, 4, 2, 5, 3, 6] list1 = [1,2,3] list2 = [4,5,6] print(zip_lists(listi, list2)) [1, 4, 2, 5, 6, 9] list1 = [1,2] list2 = [4,5,6,9] print(zip_lists(listi, list2)) Answer: (penalty regime: 0, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50 %) Reset answer 1 def zip_lists(listi, list2): 2

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!