The task: to find the string of the array with the smallest value of the sum of all its elements and display the value of the sum and the row number
a = [] j = 5 k = 2 s = 0 m = 100000 for i in range(j): for p in range(k): a.append(int(input())) for i in range(j): for p in range(k): s = s + int(a[i][p]) if s <= m: m = s b = i print(b, m)