<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Suggest an appropriate data structure to store the test scores of a class
Test scores of each student in the class<|im_end|>
<|im_start|>assistant
An appropriate data structure to store the test scores of a class is a nested dictionary. The outer dictionary will have the student's name as the key and the inner dictionary will have the test name as the key and the score as the value. For example, if we have the test scores for three students for two tests, we can store it as follows: 

scores = { 
    'John': { 
        'Test1': 95,
        'Test2': 73
    }, 
    'Adam': { 
        'Test1': 87, 
        'Test2': 86 
    }, 
    'Sarah': { 
        'Test1': 76, 
        'Test2': 75 
    }
}<|im_end|>
