Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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

  • Custom User Avatar

    Done

  • Custom User Avatar

    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?

  • Custom User Avatar

    Totally agree that it's a duplicate.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    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:

    • tick 1
    • tick 2
    • ...
  • Custom User Avatar

    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...

  • Custom User Avatar
    • the task isn't described. Like, "at all": no rules, no explainations of what are the arguments (the very least!), no context provided.
    • not enough sample tests to begin with even the slightest idea of what you want
    • tests are not implemented in the best manner: when expecting true/false, you should at least provide the arguments used for the tests in the assertion message. "Caution" isn't a useful message.
  • Custom User Avatar
    • 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.

  • Custom User Avatar

    I have marked the kata as a puzzle.
    This should now be resolved.
    Marking as such.

  • Custom User Avatar

    If anyone feels like working with me on adding support for other languages, let me know!

  • Loading more items...