#look at the code and figure out what it does #then run it #then uncomment the next SECTION #look at the code and figure out what it does #then run it #repeat testScores = [[45, 76, 32, 98, 0], [67, 34, 56, 23, 7], [0, 0, 0, 65, 56]] count = 0 for i in range(0, len(testScores)): for j in range(0, len(testScores[i])): if testScores[i][j] == 0: count = count + 1 print("There are " + str(count) + " absences") #SECTION B #change some values to 0 ##input() ##testScores[0][0] = 0 ##testScores[0][3] = 0 ##testScores[1][2] = 0 ## ##count = 0 ##for i in range(0, len(testScores)): ## for j in range(0, len(testScores[i])): ## if testScores[i][j] == 0: ## count = count + 1 ##print("Now there are " + str(count) + " absences") ##for test in testScores: ## print(test) #SECTION C #add another set of tests ##input() ##newScores = [45, 67, 34, 12, 0] ##testScores.append(newScores) ##count = 0 ##for i in range(0, len(testScores)): ## for j in range(0, len(testScores[i])): ## if testScores[i][j] == 0: ## count = count + 1 ##print("Now there are " + str(count) + " absences") ##for test in testScores: ## print(test) #SECTION D #add a score to one set of tests #you can have uneven sets of scores ##input() ##testScores[1].append(0) ##count = 0 ##for i in range(0, len(testScores)): ## for j in range(0, len(testScores[i])): ## if testScores[i][j] == 0: ## count = count + 1 ##print("Now there are " + str(count) + " absences") ##for test in testScores: ## print(test)