Question: Write a function in python 3. Write function, hw33listOfLists), that takes as input a list of zero or more sublists each containing zero or more
3. Write function, hw33listOfLists), that takes as input a list of zero or more sublists each containing zero or more numbers, and determines and prints 1 the maximum number among all of the sublists and the sublist containing that maximum. 2 the sublist list whose elaments sum to the greatest total thoro is a tio for maximum, you may print any ono of tho tudists tot oontains that maximum. If there is no maximum, hw3q3 should print an appropriate massage If thare is a tie for greatest sublist sum, you may print any one of the sublists having that sum The sum of items in an empty list should be treated as 0 For exampie and 19, 4, 6) has the naion 6an with total of 19 You should use nested loops for this probiem, an outer loop iterating over items (sublists) of the main list, and an inner loop stepping over items (numbers) in the sublists. Only simple comparisons and arithmetic operations should be used. Once again, you may not use built-in functions min, max, sort or sorted for this problem Aso, you many not use Pythons "sum function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
