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.
Without taking apart your code any further, please know that functions can return values (instead of just print them), and that is expected here. Any outside platform for coding a challenge may differ in other ways, such as not having the same tests. So, generally, do not rely on them to perfectly match the expectations of this site. The tests you find here will be the final gateway to success. More colloquially, "But it works on my machine" is not going to get you very far. ;) Best of luck fixing your code, enjoy the site, and much happy coding.