generated from mwc/lab_weather
Made function to count people who like a color.
This commit is contained in:
@@ -72,7 +72,7 @@ def count_people_who_like_color(people, color):
|
|||||||
>>> count_people_who_like_color(family, "orange")
|
>>> count_people_who_like_color(family, "orange")
|
||||||
1
|
1
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError()
|
return len(people_who_like_color(people, color))
|
||||||
|
|
||||||
def get_color_dict(people):
|
def get_color_dict(people):
|
||||||
"""Returns a dict showing how many people like each color.
|
"""Returns a dict showing how many people like each color.
|
||||||
|
|||||||
Reference in New Issue
Block a user