✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Assume that d is a Python dictionary. What does the following Python code produce?
result = dict()for key in d: val = d[key] if val not in result: result[val] = [key] else: result[val].append(key)