Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Write a function in python image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions