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.
1
This comment is hidden because it contains spoiler information about the solution
From the description:
If a list is empty return an empty list. If one of the elements is an empty string, that is invalid and should be handled.
Print the input, reread the description, check the posts below.
input
does not work because input in Codewars is not entered through the console. It's entered as parameters to a function. So, you can't useinput
because there's nothing to input. Use the information entered to you through the function instead. This applies to almost every kata in Codewars. Hope this helps, happy coding!