Question from the Python test

Create a dictionary with keys 'AI' and 'Zophie' and values 1 and 0 respectively.

Medium

What does this code do ?

import collections
scores = collections.defaultdict(int)
scores['Al'] += 1
scores['Zophie']
Author: El MehdiStatus: PublishedQuestion passed 271 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!