Commit Graph

9 Commits

Author SHA1 Message Date
root 5aa2e0256d I got the get_color_dict to "work" but only if the maximum number of
times a favorite color is listed is two.

I tried to update the dictionary entries using a frequency variable,
but it wasn't working, so I wrote it so that it just entered either 1
or 2.
2024-10-14 17:04:23 -04:00
root 010dd82161 Fixed some more things with the other functions, still have to do the
get_color_dict.

I'm not sure why get_color_dict is not working, but I think that it is
not adding to the frequency when it encounters a second person with
the color in their favorites, because it is showing 1 instead of 2 for
some.
2024-10-14 11:58:42 -04:00
root 0119963833 Fixed a typo. 2024-10-13 22:26:52 -04:00
root 92b1d13294 I got people_who_like_color to work (I think).
I don't know if these are really working because it seems like there
are more E and F left than functions to finish... I was assuming when
there was a new . in the EEEEEEEEE that meant I got a function to work.
I am hoping that multiple E and F get resolved when I finish the last
one I guess.
2024-10-13 22:21:10 -04:00
root 2dc845fd63 I got the count_people_who_like_color function to work.
I was trying to check if a color was in the list using
    if person["favorite_colors"] == color
but then I figured that if it was just one color in a list of colors it
wouldn't work.
2024-10-13 22:17:38 -04:00
root a82e20884f I got the count_favorite_colors function to work.
Still using list iteration, not sure if I should be...
2024-10-13 21:21:21 -04:00
root 9bc09ed4db I got the get_email function to work.
I am still using mainly list rules, I don't really get the iterate for
dict yet.
2024-10-13 21:13:40 -04:00
root 077aa7070a I wrote the code for the count_people function and I think it is
working.

I used the list rules to count the number of dictionaries in the list.
2024-10-13 20:51:11 -04:00
sscheuneman 39500b0cba Initial commit 2024-08-28 01:19:51 +00:00