generated from mwc/lab_weather
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user