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.
Good way to do it.
BTW: I like the part "Oi!" when wolf is in pos 1, it's like an anime scene with two rude and strong enemies confrontation:
oi, oI, OI! Chotto matte kudasai, Oukami-me! Ore-sama wa kimi o koroshimasu, bakameno! Donquixote DoFlamingo puts glasses on.
In python, 0 == False for the check in question.
my brain got fried by that "if n else" statement, thanks for breaking it down
If n equals 0, then the wolf is by the start of the queue (end of the list)
hi! Could you please tell me, why should we substract '1' from queue.index('wolf') ? Because, as I understand, we have already substructed expression itself ( queue.index('wolf') ) from len(queue). Or it is like we are getting just '0' from queue.index('wolf') - 1 and then just substracting '0' itself from the whole list ?
Alguien que hable en castellano y me pueda explicar como funciona este ejercicio?
Wow, nice one!