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.
They could also pass strings, booleans, bananas and unicorns to that function. In any case, the description says that it is guaranteed that the input is correct and has only valid values.
It will return False. Look closer... It tests the
len(set(group)) == 9
. So,len(set([2,2,3,3,5,6,7,8,9]))
will be 7.So, the method is perfectly safe.