generated from mwc/lab_weather
Fixed a typo.
This commit is contained in:
parent
92b1d13294
commit
0119963833
|
@ -44,7 +44,7 @@ def count_favorite_colors(people, name):
|
||||||
>>> count_favorite_colors(family, "Raphael Chambers")
|
>>> count_favorite_colors(family, "Raphael Chambers")
|
||||||
1
|
1
|
||||||
"""
|
"""
|
||||||
num_fave_colors = 0
|
num_fav_colors = 0
|
||||||
for person in people:
|
for person in people:
|
||||||
if person["name"] == name:
|
if person["name"] == name:
|
||||||
for color in person["favorite_colors"]:
|
for color in person["favorite_colors"]:
|
||||||
|
|
Loading…
Reference in New Issue