Ad
  • Custom User Avatar

    it has more readability however.

  • Default User Avatar

    To visualize how codes work, I recommend this tool: https://pythontutor.com/visualize.html#

  • Custom User Avatar

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

  • Default User Avatar

    I use this in my solution too! That's surely something good to know!

  • Custom User Avatar

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

  • Custom User Avatar

    I see only two options:

    • either there is a problem about the version of python you use, compared to the on of the kata (I doubt it, tho)
    • or your function actually returns None instead of a string.
  • Custom User Avatar

    yes: your code is returning None in some case. Keep in mind that the sample tests are just, well... "sample". Meaning that the test suite has many other tests.

    Errr... first things first: tell me you're not just printing your result...? ;) Here, you need to actually return the output.

  • Custom User Avatar

    Can you stop being such an entitled kata author? We already have many such kata authors around before and besides the fact that nobody likes them at all, they're a nuisance to the entire beta process. Please, please, for the sake of god, don't be a dick like one of them.

    you have voted that you are unsatisified without providing any reasoning

    Nobody owes you an explanation why they voted their way. Are you suggesting policing our votes (and only the negative ones, because every butthurt kata author like you do right here only attenuates on downvotes)? Are we going to, again, force everyone to fill in a "downvote application form" where a 300 word essay describing why making a downvote is justified is needed?

    I don't know why you vote this way on EVERY one of my kata, but It doesn't help me or anyone for you to vote and not provide any reasoning.

    When your kata isn't well received, you should be reflecting on yourself what's wrong instead of blaming everyone for not treating you like a little child. This is like interpersonal skill 101. How hard can it be?

    And as far as this kata goes, this kata is not original (there are already hundreds of basic string manipulation katas around), and specs are iffy. Look at your other two katas, isn't a satisfaction rating of 88% well-received? So learn from them. Make katas like those, and not this.

    We are all here to improve our programming and help eachother learn

    As far as the beta process is concerned, it doesn't give a damn to that. Beta process only concern on getting katas that conform to CW material's criteria pass, which means good quality, not a duplicate, etc. If the feelings of a kata author is hurt, so be it.

    Nobody, nobody ever want every single kata pass the beta process just because "some newbie might learn from it". If we have to unleash the hot garbage just because of this reason, you're implying it's okay to feed newbie hot garbage because presumably they can't tell anyway, and it means you're a terrible person.

    And typically people who invoke such argument are those who can't even make a kata that's interesting. Which you aren't, so why are you self-deprecating yourself like this?

    and when you just leave negative votes with no comment it does not help anyone

    It also doesn't help when you're being so entitled. Just because you made a kata doesn't mean you're entitled to get it approved. If your kata gets mostly negative feedback, git gud and make better katas? There are certainly katas that gets approved, and this one isn't one of them. I wonder why.

  • Custom User Avatar

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

  • Custom User Avatar

    zip(some_list, some_list[1:]) generates pairs:

    (some_list[0], some_list[1])
    (some_list[1], some_list[2])
    (some_list[2], some_list[3])
    ...
    
  • Custom User Avatar

    It's as fast as lightning :P

  • Default 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
  • Custom User Avatar
  • Loading more items...