Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
@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.
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
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.
thas is not true. the datatypes array and list are different: https://docs.python.org/3/library/array.html
This comment is hidden because it contains spoiler information about the solution