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.
actually very informative, thank you
Also, make it accessble using
request.form.get
as wellSpecified to use POST request parameter
"code"
but was not found inattempt
test. OK, it makes sense for the usual test, I use an if-else statement to catch if it'sNone
, but it's alwaysNone
. Great idea once again, but requires some fixingGreat kata idea! However, sometimes the code runs too slow and won't fit inside of the time limit. Try using a
For more documentation, refer to https://docs.codewars.com/languages/python/codewars-test/
and your code with a literal
import
statement within function is efficient?pewhapz we needs more sample tests?
because there are only 2 of them and they do not catch your specific error
what
how is sample test working fine then
your condition is wrong
This comment is hidden because it contains spoiler information about the solution
You're splitting the string twice in the above code, whereas by adding the extra line you only split the string by spaces once.
I see that this is a series and is presumable building to something but I don't think having the
/reset
route really adds anything to the experience at this point. also the description of the return dict felt a little awkward if it were just given in the dict litteral form of{'toreturn':'whatireturned'}
I don't think you would be giving to much away.That being said I enjoyed it and I'm going to try to go through the rest of this series.
Now, when the fork has been applied, this suggestion is closed, now to wait for chrisbennett~
The description is changed to be more clear with some steps you described. Please tell me if this suggestion has been resolved or something else should be added, thanks ^.^
Once again, pretty nice kata, but, as @chrisbennet and @Voile were saying below, the
/reset
info was pretty unclear + I had problems with realising what I need to return for myself.So, I made a fork where @chrisbennet's description has been applied — now the description should be more clear for everyone.
Overall, +1 in karma and looking for the future katas ^.^
Loading more items...