Complete the code to create a nested dictionary with a key 'person' and a nested key 'name'.
data = {'person': {'name': [1]The value for the nested key 'name' must be a string, so it needs quotes. 'Alice' is correct.
Complete the code to access the nested value 'city' inside the 'address' dictionary.
city = info['address'][[1]]
To access a nested dictionary value, use the key as a string inside quotes. 'city' is the correct key.
Fix the error in the code to correctly add a nested dictionary under the key 'contact'.
data['contact'] = [1]
Dictionary keys must be strings in quotes. Option A correctly creates a nested dictionary.
Fill both blanks to create a nested dictionary with keys 'student' and 'grade'.
record = { [1]: [2] }The outer key is 'student' (a string), and the value is a nested dictionary {'grade': 90}.
Fill both blanks to create a nested dictionary with keys 'team', 'player', and 'score'.
game = { [1]: [2] }The outer key is 'team'. The value is a dictionary with keys 'player' and 'score'. Here, we fill the outer key and the nested dictionary.