Q:

Write a Python program to find the list in a list of lists whose sum of elements is the highest

0

Write a Python program to find the list in a list of lists whose sum of elements is the highest.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

num = [[1,2,3], [4,5,6], [10,11,12], [7,8,9]]
print(max(num, key=sum))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now