list = [[1,2,3], [10,20,30], [5,5,5]] max_idx = 0 max_sum = 0 for i in range(len(list)): if sum(list[i]) > max_sum: max_sum = sum(list[i]) max_idx = i print(max_idx)
To embed this project on your website, copy the following code and paste it into your website's HTML: