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.
This comment is hidden because it contains spoiler information about the solution
totally agree
@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.
Yeah, arrays in Python have been around for ages. The issue of python authors mislabelling lists as arrays has probably been around just as long. For newer kata, this should come up during the beta process/translation review, but it exists in a lot of older ones.
As for descriptions, array should just be read as a general "sequence" data type, since making descriptions very language specific is quite a hassel.
However in my opinion, the initial solution in Python should definitely refer to elements as lists, not arrays. Reading "array" in the description, but then seeing the argument named "lst" in the initial solution reassures that the input is indeed a list. However seeing the argument named "array" is more confusing, and also misleading to newer users.
Ruby translation
Thank you so much! I was getting errors about that and did not understand the criteria that was being followed