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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It's a default value to be returned if the key does not exist.
quite like mine :) I'm not alone!
This is calling count twice for the same letter.
Is it increasing complexity for nothing if I added a check for that?
thanks.
Is it really better to do this kind of "switch case" vs "if/elif/else"s in Python?
I was wondering what is the ",1" in the .get.
I realized that no mather what I put there, it does not change anything.
Thanks!
I tend to say that this solution is currently the best as there are content validation of logins.
This would crash if the logins is provided empty such as the following test case:
a = [[ "foo", "foo@foo.com" ], [ ] ]
b = [ ]
test.assert_equals(search_names(a), b)
test.assert_equals(filter_used, True, 'Use filter function' )
I'm getting to it !:)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you must have the return outside the loop.
Duh, i haven't done python in a very long while =/ I was trying to do c++ like and failed this hehe.
Thanks for putting me back on track :P