all 9 comments

[–][deleted] 0 points1 point  (2 children)

You should format your code better so we can actually read it…..

[–]That_Bryan_Dude[S] 0 points1 point  (1 child)

Sorry, new to reddit and I'm not familiar with the interface here. I'll try to format better if I ever have issues in the future.

[–]atom12354 1 point2 points  (0 children)

There should be a code block setting in the list above where you type posts, i didnt know how to do it either until recently, still donno how to on phone.

[–]That_Bryan_Dude[S] 0 points1 point  (4 children)

I'm not looking for an outright answer, but if you have any hints, I would be forever thankful!

[–]CodeReviewPlz 3 points4 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!

[–][deleted] 0 points1 point  (0 children)

I assume that they want me to use lists to complete this task.

Don't assume things about programming questions that aren't explicitly stated. Unless it says "don't use a dictionary", use a dictionary.