Fixed a typo.

This commit is contained in:
root
2024-10-13 22:26:52 -04:00
parent 92b1d13294
commit 0119963833

View File

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