diff --git a/.DS_Store b/.DS_Store index 76cb8e3..0970769 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/friend_functions.py b/friend_functions.py index c0cd62c..e22700b 100644 --- a/friend_functions.py +++ b/friend_functions.py @@ -27,7 +27,10 @@ def get_email(people, name): >>> get_email(friends, "Tad Winters") None """ - raise NotImplementedError() + for person in people: + if person["name"] == name: + return person["email"] + 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.