diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..76cb8e3 Binary files /dev/null and b/.DS_Store differ diff --git a/friend_functions.py b/friend_functions.py index 6f5ecf7..c0cd62c 100644 --- a/friend_functions.py +++ b/friend_functions.py @@ -9,7 +9,7 @@ # Your job is to complete these functions. Remove the NotImplementedError from # each and instead write code which returns the expected values. -def count_people(people): +def count_people(people: dict): """Counts the number of people. >>> count_people(family) @@ -17,7 +17,7 @@ def count_people(people): >>> count_people(friends) 10 """ - raise NotImplementedError() + return len(people) def get_email(people, name): """Returns the named person's email address. If there is no such person, returns None.