Ad
  • Custom User Avatar

    @Kacarott, thank you for acknowledging this. I would probably have realized that it requests a list if I had looked closer to the expected output or the tests, but I usually don't look at tests unless I get a failing test, and the result I got was not a failed test but an error in the code (That was what was frustrating because the code had no errors). And because I am an instruction follower, I can easily dismiss a missing parenthesis in the ([]) sequence. Your solution looks clever to me. Thanks.

  • Custom User Avatar

    There is allways a first time. The reason there haven't been complains about this is perhaps that this is a basic level test. And a python beginer might not know the difference between a list and an array. But the concept of array (if not the class) exists since python 2.7: https://docs.python.org/2.7/library/array.html

  • Custom User Avatar

    I am new to katas but not new to python. And I spent a long time banging my head on the error I was getting, cos it was not very helpfull and I was doing what the instruction told me to. So changing the description to list of numbers instead of array might work, or at least making a note to python users.

  • Custom User Avatar

    thas is not true. the datatypes array and list are different: https://docs.python.org/3/library/array.html

  • Custom User Avatar

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