if __name__ == '__main__':
scores = [[8, 1], [5, 3], [3, 5], [8, 1], [7, 1], [1, 0], [9, 0], [5, 0], [6, 0], [8, 1, 0]]
#scores_int = 0;
#scores_int = len(scores);
sum = 0;
for row in range(len(scores)):
sum = scores[0]
print(sum)
print(scores[0:1])
print(scores[1][0])
#print("Sum of all all the socres:", sum);
So im trying to figure out a way to loop through every instance of the array and add the values in them to a sum variable, but i dont understand how to loop through a 2d array. The score sum should equal 72 i just need syntax help with the for loop