I am going to run the code to make sure no errors come as I accidently just did mwc submit rather than python test_friend_function.py

This commit is contained in:
erbrown
2025-12-13 20:54:25 -05:00
parent 0e0962c53d
commit c567bd010d
2 changed files with 53 additions and 45 deletions

View File

@@ -98,7 +98,15 @@ def get_color_dict(people):
"orange": 1,
}
"""
raise NotImplementedError()
color_counts = {}
for person in people:
for color in person["favorite_colors"]:
if color in color_counts:
color_counts[color] += 1
else:
color_counts[color] = 1
return color_counts