generated from mwc/lab_weather
	Made function to count a person's favorite colors.
This commit is contained in:
		@@ -40,7 +40,9 @@ def count_favorite_colors(people, name):
 | 
				
			|||||||
        >>> count_favorite_colors(family, "Raphael Chambers")
 | 
					        >>> count_favorite_colors(family, "Raphael Chambers")
 | 
				
			||||||
        1
 | 
					        1
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    raise NotImplementedError()
 | 
					    for person in people:
 | 
				
			||||||
 | 
					        if person["name"] == name:
 | 
				
			||||||
 | 
					            return len(person["favorite_colors"])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def people_who_like_color(people, color):
 | 
					def people_who_like_color(people, color):
 | 
				
			||||||
    """Returns a list containing only those people who like the given color.
 | 
					    """Returns a list containing only those people who like the given color.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user