From ef72f963c825848029a54247815e2966029b2d1b Mon Sep 17 00:00:00 2001 From: tgaeta Date: Wed, 8 Oct 2025 13:10:00 -0400 Subject: [PATCH] Made function to count a person's favorite colors. --- .DS_Store | Bin 6148 -> 6148 bytes friend_functions.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.DS_Store b/.DS_Store index 09707695e3652a26b3ecff738990b597b91d7137..ab9b0d6cf68bc9de4fbde8d0d6ae9aca6a50a5e9 100644 GIT binary patch delta 134 zcmZoMXffEJ#uRt|8v_Fa3xgg*IzuKyNp8N2OHxjL5>Sl8(^2F{hWBwtRQVLV@&y@& u!O8i#1wcIv49o@$lh-jxO`gZZ&-e_;QscO-woyJ4Xe5v$v-t-Tk0=04+9aI- delta 134 zcmZoMXffEJ#uRt`5(5JR3xgg*IzuKyNp8N2OHxjL5>Sj|=S|L(4DaKPsPZXz>> count_favorite_colors(family, "Raphael Chambers") 1 """ - raise NotImplementedError() + for person in people: + if person["name"] == name: + return len(person["favorite_colors"]) def people_who_like_color(people, color): """Returns a list containing only those people who like the given color.