Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a logic to find the max sum of a list in another list?



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

Post New Answer

More Python Interview Questions

What made you to choose python as a programming language?

1 Answers  


What is try block?

1 Answers  


How do you split a list into evenly sized chunks?

1 Answers  


What are the benefits of flask?

1 Answers  


Write a code to display the current time.

1 Answers  


Which database is best with python?

1 Answers  


What is the difference between append() and extend() method in python?

1 Answers  


What is the scipy?

1 Answers  


How can you handle multiple exception in python?

1 Answers  


How to import modules in python?

1 Answers  


Why you should learn python in 2019?

1 Answers  


When would you use triple quotes as a delimiter?

1 Answers  


Categories