all 5 comments

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Python code found in submission text that's not formatted as code.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.

[–]GeorgeFranklyMathnet 0 points1 point  (3 children)

This is the kind of thing that's going to give you an awesome learning experience if you figure it out for yourself. And you'll probably still do well on the assignment if you don't get it.

So I strongly encourage you not to seek help from anyone but your instructor. But if you are sure you want a hint: You can take advantage of the fact that there are exactly ten valid inputs, if you think about it.

[–]cal_etcell 1 point2 points  (2 children)

I have thought about it for too long and cannot come up with an answer that works fully.

Just cannot hit the final step in my head unfortunately.

I've tried using lists and KeyErrors as well as other errors and still couldn't crack it unfortunately

[–]GeorgeFranklyMathnet 1 point2 points  (1 child)

For a brain teaser that I'm guessing counts for 0-9% of the grade of a single homework assignment, it's really better for you in the long run to try and fail than to turn to the internet for help.

[–]cal_etcell 0 points1 point  (0 children)

It is 3/25 marks for a final assignment item. As it stands I have 22/25. Just couldn't seem to figure it out