Ad
  • Custom User Avatar

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

  • Default User Avatar

    Directly raise

    Traceback (most recent call last):
      File "main.py", line 1, in <module>
        from solution import *
      File "/home/codewarrior/solution.py", line 1, in <module>
        from setup import *
      File "/home/codewarrior/setup.py", line 3, in <module>
        __builtins__.len = None
    AttributeError: 'dict' object has no attribute 'len'
    
  • Custom User Avatar

    Update the details with removal of the previous kata (no gaurantee that it has been trained on). Otherwise nice kata!

  • Custom User Avatar

    I suggest to check against an input that contains nil and false as values of the array (invalidating my initial solution).

  • Default User Avatar

    requires more test cases

  • Custom User Avatar

    Where is the difference with V2?

  • Custom User Avatar

    Where is the difference with V1?

  • Custom User Avatar

    As others reported already, the parameter 'list' should be renamed. And I always think it's a good idea to have an example in the description, even for simple tasks.

  • Custom User Avatar

    raulbc777 is right, the name of the variable should be changed. I used 'lst' in my solution.