Write a logic to find the max sum of a list in another list?
Answer / Ranjan Kishore
Here is one solution: `def max_sum(lst_of_lists):n return max(sum(sublist) for sublist in lst_of_lists)nexample:nnumbers = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]nsum_max = max_sum(numbers)nprint(sum_max)`
| Is This Answer Correct ? | 0 Yes | 0 No |
What made you to choose python as a programming language?
What is try block?
How do you split a list into evenly sized chunks?
What are the benefits of flask?
Write a code to display the current time.
Which database is best with python?
What is the difference between append() and extend() method in python?
What is the scipy?
How can you handle multiple exception in python?
How to import modules in python?
Why you should learn python in 2019?
When would you use triple quotes as a delimiter?