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 tried to use intertools in former katas and it seems it's not integred in Codewars and there's no console to install it, heh.
itertools is ought to be learnt:)
Oh my... yes. I really should have noticed that.
Thanks!
you're reading the test suite the wrong way around: this input expects
'Draw'
, not'Red'
. Meaning I guess you're reading the input of the test following the one that failed instead: the call to your function is done before the assertion, meaning the logs appears before the related assertion.[python 3.6] I cannot make sense of some (~ 2-11) random tests failing.
For example:
The list of moves was aquired with
Yes? :')
O_O
Would have never thought of doing it like that. Thanks for that solution!
but inefficient. ;)
Ah, [:k] ... thats beautiful and so readable!
Zunks for zis!