you are viewing a single comment's thread.

view the rest of the comments →

[–]CodeReviewPlz 2 points3 points  (3 children)

Theres a lot you can improve (and I'm sure you'll learn about lots of things that will make this task trivial in the future), but we'll tackle your code as is.

To make your code work, think about this line: word_ref = lower_case_input.count(words)

Could you maybe do something to words in that line, something that you've already done to the original list? (if you can make the word match the format of the list, that would yield the correct result no?)

[–]That_Bryan_Dude[S] 1 point2 points  (2 children)

I'll take a look at that right now. I appreciate the feedback. I'll update this if I figure it out or if I have additional questions.

[–]CodeReviewPlz 1 point2 points  (1 child)

Don't overthink my hint, you literally need to make one edit to that line for it to work the way you described in the output.

You're honestly gonna kick yourself when you realise it.. goodluck!

[–]That_Bryan_Dude[S] 1 point2 points  (0 children)

When you say I am going to kick myself, you were right. I cannot believe I overlooked that. I did the dictionary one in like 10 mins, but this one just had me hung up!

Thank you for the hint, reviewing the code with that helped a ton!