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