Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Яку проблему вирішує collections.defaultdict?
collections.defaultdict
Дозволяє використовувати list як ключі.
list
Зберігає порядок додавання ключів.
Уникає KeyError при доступі до неіснуючого ключа, створюючи значення за замовчуванням.
KeyError
Робить словник незмінним.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!