I didn't really get stuck on this one. I did take some time to think
about how I could break the problem into two parts. Because I already
had a function that could count the number of people who like a color,
I just had to determine how to know all the colors that are liked.
I again compared the output to the sample output. I originally only
returned the names of the people based on how I understood the
docstring as opposed to returning all the information of the people.
My window was small, and I started writing without reading the full
docstring, which caused me to fail a test. Once I read the error, I
looked for where None appeared in friend_functions.py and realized
there was important information in there.
I got stuck with this in a couple places. The first was just getting
used to the syntax. The second was that I wasn't sure of the
difference between is and ==. Similar to before, I just tested
the specific function in friend_functions.py using the test cases
given and checked what output I was actually getting to figure out
what it was doing, which wasn't always obvious when running
test_friend_functions.py
I forgot I had to assign the variable before referencing it. When
it didn't work at first, I poked through test_friend_functions.py
to figure out what data was being used. I put
from people import friends, family
and
count_people(family)
into friend_functions.py and ran python friend_functions.py to see
what the error was.