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.
please use a spoiler next time
This comment is hidden because it contains spoiler information about the solution
Also note that over 500 people have solved this in Python, so the chance that all 500 of them made the same error as the checker in order to pass is very unlikely. I am going to close this, but you can post more evidence if you are convinced there is a problem.
The two solutions you showed in the original post are not the same, they are different. Have a look at both of them where I've marked Xs.
Therefore there is no unique solution.