Question: Given this dictionary definition: test _ scores = { ' Bob ' : [ 8 8 , 9 2 , 8 2 ] , 'Sue':

Given this dictionary definition:
test_scores ={'Bob': [88,92,82],'Sue': [90,92,88]}
How would you reference Sue's first grade?
A.) test_scores.get('Sue')[1]
B.) test_scores['Sue'][0]
C.) test_scores['Sue']->[0]
D.) test_scores.get('Sue')[0]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!