Fixed a typo.

This commit is contained in:
root 2024-10-13 22:26:52 -04:00
parent 92b1d13294
commit 0119963833
1 changed files with 1 additions and 1 deletions

View File

@ -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"]: