From 291398cae9bfb16f9f00922454bbc99aca99a46c Mon Sep 17 00:00:00 2001 From: Hope Date: Mon, 7 Jul 2025 19:41:56 -0400 Subject: [PATCH] completed the count funtion --- friend_functions.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/friend_functions.py b/friend_functions.py index 6f5ecf7..3318094 100644 --- a/friend_functions.py +++ b/friend_functions.py @@ -10,14 +10,10 @@ # each and instead write code which returns the expected values. def count_people(people): - """Counts the number of people. - - >>> count_people(family) - 5 - >>> count_people(friends) - 10 - """ - raise NotImplementedError() + #Counts the number of people in the list/dict sent + count = len(people) + return count + def get_email(people, name): """Returns the named person's email address. If there is no such person, returns None.