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.
The very same for me. Didn't thought putting last element as 0! Smart!.
This comment is hidden because it contains spoiler information about the solution
I like dictionaries!
you are right, there should be
string.ascii_letters.index(char) + 1
but the kata itself doesn't have tests for that so even without that it's working properly :(This is not the correct answer since string.ascii_letters.index('b') equals 1, whereas the description expects it to be 2.
Short, simple and clever
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
very clean
Very smart
Exactly what I did :P, the trick was making the last key 0 in the dictionary for the modulo to work for any nb_petals being a multiple of 6 :P