Highest sum of scores program
input format is
2
0 1 2
3 1 0
def sum_score(n):
list1 = []
for i in range(n):
s = 0
j = input('Enter comma separated values')
j = j.split(',')
for i in j:
s = s + int(i)
list1.append(s)
return max(list1)
Comments
Leave a comment