Created
August 14, 2021 02:20
-
-
Save halirutan/80004ae231caee78072e1fcb4b236b0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
l = [[1, 2, 3], [2, 3, 3], [1, 3, 3]] | |
def find_max(lis): | |
tmp = list() | |
for i in lis: | |
tmp.append(sum(i)) | |
return lis[tmp.index(max(tmp))] | |
print(find_max(l)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment