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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In case any Python programmers are reading this far down in the Discussion:
As of Python 3.10, we now have a switch statement - you can read the following documentation:
PEP-634 structural pattern matching
Done
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?Totally agree that it's a duplicate.
Kata should now be solvable.
But @RedstoneCoder, you should seriously consider unpublishing this Kata and coming up with something completely different - I can tell you with 100% certainty that this Kata will never get anywhere near leaving Beta in its current shape.
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:File "", line 18
test.assert_equals(sum_of_numbers(x), , "Did not return the expected value.")
^
SyntaxError: invalid syntax
Please make sure your tests work before publishing...
"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.
I have marked the kata as a puzzle.
This should now be resolved.
Marking as such.
If anyone feels like working with me on adding support for other languages, let me know!
Loading more items...