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 solution was written in Python 2, where the division operator had a different behaviour.
None should equal 'found the needle at position 3'
means your code returnsNone
, in general it means it returns nothing. You mustreturn
the result notprint
(you can print whatever you want for your convenience, but the tests don't take it into account). Justreturn your_result
, it's the same in all katas.