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.
oh ok! thanks!
mycode passed all except this ''expected:<[ ]> but was:<[]>''. any suggesstions??
A function that returns different datatypes is a bad practice. Let's say the output of your function is then used by a different one and it expects a string, if you return None, it could throw an error when trying to read its length.
can you explain what that means a little more? I'm using codewars to teach myself
They are different data types, so no.
aren't they both null values? if there was nothing input to begin with shouldn't both be acceptable values?
Why would it expect None? Not a kata issue.
Don't know if anyone else had an issue where any empty inputs would error out expecting '' instead of none on the python test. otherwise it was a fun little challenge
Nice
I'm trying to solve kata in Haskell. According to output from random tests my code fail on strings like "\na", "a\n", "a\t". if i understood everything correctly, this strings should be returned as is or i'm wrong? Tests do not show expected results. I tested code on local mashine and it works fine on those input.
thanks so much!, embarassing mistake
It looks like you're not returning any value. Printing is for your own debugging.
Hi there!, can someone share some light on this:
Test Results:
Fixed Tests
Basic Test Cases
Log
'ehT kciuq nworb xof spmuj revo eht yzal .god'
None should equal 'ehT kciuq nworb xof spmuj revo eht yzal .god'
Log
'elppa'
None should equal 'elppa'
Log
'a b c d'
None should equal 'a b c d'
Log
'elbuod decaps sdrow'
None should equal 'elbuod decaps sdrow'
I'm wondering what I'm doing wrong, they are strings, i get the correct output respecting the spaces....hmmm
They are there. I checked.
in python when i reset to restart coding there is no sample tests.
Loading more items...