Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
( Haskell )
( My emphasis )
In contradiction of the description however, sometimes,
boss
is not.For someone not super familar with this website the way in which the tests work are not familiar to me.
It seems like a point which should probably be included in the directions, as its quite frustrating to have functioning code which is then consistently being told is wrong.
My goal was to understand why the test was failing despite all the checks i was putting in were telling me the code was correct.
"Don't mutate the input" does not explain nor give insight into why the test was failing, which is why i persisted on the matter, and thank you for explaining it to me in your last comment . I'll now know in future this best practice so I don't encounter the issue again of correct code failing tests.
meet[boss] = meet[boss]*2
That's mutation of the input. Unfortunately for you, the tests aren't written in the best way and the expected solution is computed with the same dict instance that you used, but AFTER your solution has been run. So, ofc, it computes a result that is matching the data that are in the dict after you changed it. Meaning that the tests are "correct" and the problem effectively comes from your solution.
=> mutation of the input is very bad practice. Don't do that unless it's clearly specified that you can do it.
And when someone tells you that you're doing wrong, ask yourself if that person couldn't be telling you the actual thruth before jumping on the downvote button...
Average Score = 4 + 0 + 7 + 0 + 0 + 3 + 3 + 7 + 5 + 1 + 8 + 7 (as sajid is worth double) = 45
People in Room = 11
45 / 11 = 4.1
This should return 'Get Out Now!'
My script is returning Get Out Now and is being marked incorrect.
python random tests are sensible to input mutation.
don't mutate the input (that or you forgot something. But tests are "correct")
Python Kata seems to have incorrect tests.
{'tim': 4, 'jim': 0, 'randy': 7, 'sandy': 0, 'andy': 0, 'katie': 3, 'laura': 3, 'saajid': 7, 'alex': 5, 'john': 1, 'mr': 8} saajid
Script is returning 'Get Out Now!' which according to directions is correct. However this is being marked incorrect.
I found the instructions very confusing in regard to the boss; I was looking for a parameter 'boss', not realizing it was one of the names in the meeting.
This comment is hidden because it contains spoiler information about the solution