Commit Graph

7 Commits

Author SHA1 Message Date
Cory Dean Chung bb558ccbd7 Checkpoint 1 final commit: Finished all functions.
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.
2023-08-14 15:20:12 -04:00
Cory Dean Chung ed792e58ee 1 commit 5: Wrote count_people_who_like_color
I didn't get stuck on this one :D
2023-08-14 14:43:21 -04:00
Cory Dean Chung ffb18b847b Checkpoint 1 commit 4: Wrote people_who_like_color
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.
2023-08-14 14:39:31 -04:00
Cory Dean Chung 87f87eab0b Checkpoint 1 commit 3: Wrote count_favorite_colors
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.
2023-08-14 14:22:46 -04:00
Cory Dean Chung dc696ef25a Checkpoint 1 commit 2: Wrote get_email.
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
2023-08-14 14:10:04 -04:00
Cory Dean Chung fe0c595b4b Checpoint 1, commit 1: Wrote count_people.
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.
2023-08-14 13:54:08 -04:00
cchung 3dcc1aebc2 Initial commit 2023-08-01 12:28:30 +00:00