192k views
3 votes
Your program has a two-dimensional array, scores. You are implementing your array with lists. Each member in the array is a pair of

scores, composed of [your team score, the opponent's score).
Which line of code will add a new pair of scores to the array?
scores.insert(6,2)
O scores.append([6.2])
O scores.insert[62]
O scores.append(6,2)

User Jose Parra
by
5.6k points

1 Answer

7 votes

Answer:

scores.append([6, 2])

Or simply D

Step-by-step explanation:

Note: Be sure to look carefully or you'll get tripped up. Trust me, I know!

User Sachin Gurnani
by
6.4k points