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.
Really? No sample tests?
Good kata, great!
@Varelion, check your match case function again. You are translating '3' incorrectly.
Yeah, I automatically thought of a dictionary as what it is in Python, Hashmap, Map, etc
that's exactly what it is
Fun Kata, but feels more like a 7 kyu and also the description of "dictionary" is misleading since what is passed is a list.
Thank you to trashy_incel for making the changes to the description and sample tests. Hopefully now people who attempt this kata in Python will not experience the same frustration as those in the past.
I also withdraw my assertion that the Python translation was a bad one. Reviewing the history, the kata was translated twice from the original Javascript version, with the second translation hewing very closely to the original, as per BobtheLantern's opinion. I made the incorrect assumption that the Python version was created by the same author as the Javascript one, and that was why the strict equality requirement had been carried through. I have edited the relevant post accordingly.
My thinking is that the original author added the tests for strict equality in the JS version because every Javascript tutorial worth its salt hammers home that you should always, always, always use "===", and not doing so is generally considered bad practice (with some exceptions).
I added the type checking requirements to the description and added fixed/sample tests in Python to enforce it + invalidate solutions that use
isfor type-checkingadded type checking requirements to the description
that's because there are tests mixing booleans and integers, the kata wants you to treat them as distinct, even though
0 == False/1 == Truein Python. closing as the OP's suggestion is not clearthat's because there are tests mixing booleans and integers, the kata wants you to treat them as distinct, even though
0 == False/1 == Truein Pythonthat's because there are tests mixing booleans and integers, the kata wants you to treat them as distinct, even though
0 == False/1 == Truein Pythonclosing as the
isoperator does not appear anywhere in the Python test suite, so this issue report is incorrect.False == 0is a different issueclosing as the
isoperator does not appear anywhere in the Python test suiteis this really about reference equality ? i don't see the
isoperator used anywhere in the Python test suite, the thing everyone is complaining about is the0/Falsedichotomy in the fixed testsLoading more items...