Ad
  • Custom User Avatar

    Fixed some time ago, also there are assertion messages now, so users should not be puzzled by which inputs they are failing. If they want to know which part of code that fails, they can always use print() :)

  • Default User Avatar

    It is beautiful though!

  • Default User Avatar

    It is realy "realy oversized"

  • Custom User Avatar

    Python 3.8

    Reset/default state code should be changed from

    def kebabize(string):
        #your code here 
    

    to

    def kebabize(_string):
        #your code here
    

    Reason: arguments and variables should not match module names or functions. Style guide says that if they must, leading them with an underscore should be done.

    While this may hold value for teaching kata solvers to examine the arguments given, and change them as they need to - I am uncertain if this is the intended "problem" of this kata. All it does is send greenhorn coders on a wild goose chase trying to answer the error code of...

    "AttributeError: 'str' object has no attribute 'ascii_lowercase'"

    which I do not feel to be easy to resolve as a beginner.

    Now, I do concede it gave me some good troubleshooting experience ("Wait... what happens if I... Oooh!") but, I'm not sure if that's the intended challenge.

  • Custom User Avatar

    There are, but I believe due to size of the description, they do not show on main page.

    It took me a bit to notice you can scroll down kata descriptions - so I suggest just that!

    However one of the examples given was... (note the Whitespaces, Python)

    #1 floor:
    
    tower = ["*"]
    
    #2 floor :
    
    tower = [" * ","***"]
    
    #3 floor : 
    
    tower = ["  *  "," *** ", "*****"]
    
  • Custom User Avatar

    Hey! are there examples?

  • Custom User Avatar

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

  • Custom User Avatar

    Are you using print() as a debugging tool?

    If so, consult: https://docs.codewars.com/training/troubleshooting/#maxbuffer

    It should answer all your issues!

  • Custom User Avatar

    That's part of the challenge! Can you recognize the pattern at play?

  • Custom User Avatar

    I really got to learn functions already available in Python.

    My solutions look oversized, and this one makes it feel worse.

  • Custom User Avatar

    Read the description carefully and you'll find the answer.

  • Default User Avatar

    105 test passed and only 2 failed and showing this 'NoneType' object has no attribute 'sort'

  • Custom User Avatar

    Read the documentation. This is not the right place to ask people to teach you programming languages.

  • Default User Avatar

    how to use function sort() without returning none value

  • Custom User Avatar

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

  • Loading more items...