Question: using Python on Windows interestingMerge (12,13) Write a function interestingMerge (12,13) that accepts two lists and return a list of tuples. The function finds the
interestingMerge (12,13) Write a function interestingMerge (12,13) that accepts two lists and return a list of tuples. The function finds the sorted listed of all pairs of numbers. Each pair should satisfy the following conditions; The first element of the pair comes from the first list and the second element of the pair comes from the second list. Additionally, first element of the pair divides the second element evenly. Sample Input 12 = [1,2,3,4,5,6) 13 - (12,15,24,66,80) Expected Output {(1, 12), (1, 15), (1, 24), (1, 66), (1, 80), (2, 12), (2, 24), (2, 66), (2, 80), (3, 12), (3, 15), (3, 24), (3, 66), (4, 12), (4, 24), 14, 80), (5, 15), (5, 80), (6, 12), (6, 24), (6, 66)]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
