Question: In python, Write a function that takes, as an argument, two lists of distinct, positive integers, and returns the list whose product of elements is

In python, Write a function that takes, as an argument, two lists of distinct, positive integers, and returns the list whose product of elements is larger.You must iterate through the lists using either a for loop or a while loop.Use the naming structure: problem4 (list1,list2)

For example,

>>>problem4([1,2,3,4,5,6,7,8], [0,4,6,8,10,12,14,16,18,20])

should return the list

[1,2,3,4,5,6,7,8].

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!