5 kyu

Keep it short (with restrictions)

219suic
Description
Loading description...
Puzzles
Restricted
  • Please sign in or sign up to leave a comment.
  • ahmet_popaj Avatar

    Funny one of the series.

  • saudiGuy Avatar

    The length of the user's code could be displayed in assertion messages for the "code length" test.

  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • ejini战神 Avatar

    Python new test framework should be used and 3.8 enabled

  • codes_with_roh Avatar

    How can we give the output without the return statement as print statement won't work?

  • crap_the_coder Avatar

    How do you check if astring apperars in the code. I am new to codewars and i want to author a kata (mystery). Thanks a lot

  • arrubo Avatar

    This comment has been hidden.

  • lukophron Avatar

    This comment has been hidden.

  • lechevalier Avatar

    Why restricting imports or number of lines or even recursive solution? In my opinion, I find it more interesting to let only the twittable golf restriction and to let players to attempt their solution on several lines even with return.

  • narayanswa30663 Avatar

    What is the purpose of restriction 5?

  • zebulan Avatar

    This comment has been hidden.

  • zebulan Avatar

    @suic,

    Your bizarre hatred for PEP8 and coding best practices in general is amusing.

    In your quest to teach worst practices, you seem to have created a brand new data-structure in Python. What do you call it?

    {1: 1, 2: 2, 2: 3, 1: 4}
     |     ^     ^     |
    
  • ZozoFouchtra Avatar

    Got a "Too long" message for a 1-line. What is maximum allowed length ?

  • kazk Avatar

    Thanks for this kata :) I've been enjoying this series.

    4th test case in "Basic Tests" gives a list with empty dict as an input:

    [[{}], {}],
    

    Currently accepted solutions seems to work by treating it as some iterable object?

  • tachyonlabs Avatar

    Maybe it's my lack-of-sleep talking, but having just solved it, right now I'm totally spacing out about why I might have wanted to use ; or # here. :-)