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.
As mentioned by other Codewarriors, although this Kata may not be an exact duplicate of an existing Kata on Codewars down to the last line of code, that doesn't mean that this Kata is creative or unique in any manner. Such Kata involving trivial
if
/else
statements that even a 3 year old can comprehend has already been done to death on CW and changing a few numbers here and there (or changing the variable names used) doesn't make it any more challenging or fun. Seeing that this isn't the only Kata you authored with such issues, I would strongly recommend that you 1) read the CW GitHub Wiki on authoring new Kata carefully and 2) pay close attention to Kata you complete that have a high satisfaction rating (ideally 90%+; over 80% at the very least) - what makes them so successful?This comment is hidden because it contains spoiler information about the solution
Puzzle
!= making you and your kata look "smart" so people can't point out it's stupid/duplicate to existing katas.Don't try to shitpost katas and then counter people raising issues by doing more shitposting. Make actually interesting katas.
you should rewrite this part of the description:
For example: cost = 450 => 350 returned cost = 300 => 250 returned cost = 299 => 299 returned
it's not readable (possibly formatting markdown that are lacking in the description, only): use*
at the baginning of different lines to get ticks:"Caution"
isn't a useful message.seen and done again, and again and again. Blatant duplicate.
tests are not even running. Don't you test your code before publishing?:
File "", line 17
test.assert_equals(sum_of_numbers(x), , "Did not return the expected value.")
^
SyntaxError: invalid syntax
You really should unpublish this one.
This comment is hidden because it contains spoiler information about the solution