diff --git a/friend_functions.py b/friend_functions.py index 6e50d24..3bc6268 100644 --- a/friend_functions.py +++ b/friend_functions.py @@ -30,8 +30,7 @@ def get_email(people, name): for person in people: if person["name"] == name: return person["email"] - else: - return None + return None def count_favorite_colors(people, name): """Returns the number of colors liked by the named person. If there is no such person, returns None. @@ -45,8 +44,7 @@ def count_favorite_colors(people, name): if person["name"]== name: colors = person["favorite_colors"] return len(colors) - else: - return None + return None