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.
I think we got lost in the elegance, including the kata creator who gave this as the canonical solution, but not for his C++ solution. It seems that the edge case of "not cut" isn't important in the python version.
This comment is hidden because it contains spoiler information about the solution
According to the condition of the problem, the length of the array is guaranteed to be > 1, in the examples it can be seen that the first element in the incoming array is "thrown out", this is logical, because checking for i % 0 will not make sense. That's why we start the sequence with 1
XD
Look Ma! No list comprehension!
Man, I tried to do this but failed...
For Python 3 - "print(PRESET_COLORS)"