Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Write a function range that accepts a list of lists as a parameter and that returns the range of values contained in the list of lists, which is

Write a function range that accepts a list of lists as a parameter and that returns the range of values contained in the list of lists, which is defined as 1 more than the difference between the largest and smallest elements. For example if a variable called lis stores the following values: [[18, 14, 29], [12, 7, 25], [2, 22, 5]]

The call of range(lis) should return 28, because this is one more than the largest difference between any pair of values (29 - 2 + 1 = 28). An empty list is defined to have a range of 0. You may not make any assumptions about the range of numbers in the list of lists. You may not alter the list. You may not create any other data structures.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question