Commit Graph

9 Commits

Author SHA1 Message Date
Chris Mekelburg 8c678d274a made change to fix else/return None problem
I removed the
else:
    return None
and replaced with
return None

as discussed on Discord. I checked the code with test_friend_functions.py
and it all still works.
2024-10-20 20:18:55 -04:00
Chris Mekelburg 0a4b79f4c2 Checkpoint 1
Feeling relieved to have gotten all the functions working. I had one l
ast problem and after posting to Discord and was actually able to figure
it out myself (somehow seeing it in the message board instead of the
terminal made it more obvious, I ended up deleting the post from Discord
since it was super specific).
I found this part of the lab to be kind of challenging as it was not
very straightforward and was somewhat frustrating at times. I feel
like a bit more documentation or background on dictionaries could have
helped, but I was ultimately able to solve the problem by searching
online and trying to think each line through. It also took me a while
to realize we were using a list of dictionaries and keeping that in the
front of my mind helped me get past the final issues I was having.
2024-10-15 21:42:41 -04:00
Chris Mekelburg f9ec3295a6 count_people_who_like_color is working
I think I got this function working, but it's difficult to decipher the
error messages in the test_friend_functions program. I'm going to attempt
the last function and then revisit anything that is still giving an error.
2024-10-13 22:25:14 -04:00
Chris Mekelburg 36bee1bf5f people_who_like_color is working
I found this function a bit easier to work with after I had some trouble
with the previous ones. The lines I added at the end are proving very
useful to testing the functions and understanding how they work.
2024-10-13 22:19:25 -04:00
Chris Mekelburg e45fa894a1 count_favorite_colors is working
I added some helper print statements at the end of friend_functions to
help me test. Had an indentation error with the else statement that got
me stuck for a while but is resolved now.
2024-10-13 22:07:02 -04:00
Chris Mekelburg 1631f47445 Function 3 count_favorite_colors
Not sure what is going on here, but I was able to decipher the error
message that it is not reading 0 for when the "favorite colors" list is
empty. I'm just not sure what it is not reading 0 and I've tried a few
other things too with the same result. Going to move on for now and come
back to this later.
2024-10-13 15:13:56 -04:00
Chris Mekelburg e4cb952f6f Function 2 working
I think I got the get_email function working here (I have 2 dots) but am
still getting one F as the result of the testing section. If this
function still has an error, I can come back and fix it before
completing checkpoint 1.
2024-10-13 14:49:07 -04:00
Chris Mekelburg dd1fb7d3d3 1 function count_people function is working
I didn't remember the len function at first, but a quick google search
refreshed my memory.
2024-10-10 21:49:21 -04:00
cmekelburg 1799c59fe4 Initial commit 2024-08-27 23:08:27 +00:00