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.
xor solution is n. Most efficient
Good one! You also are good writing without "!=0" because boolean for "0" would be "False" anyway, and all others would be "True!
I used set, but actually this one is shorter, maybe it's more expensive if talking about productivity...
Thank you!
Pleasant, simple task! I like it)
It is a generator btw.
The examples show one with a list of string values, e.g. count_if(["John","Steve","John"], "John") but it looks like the tests only give you numbers
Edit: see my recent solution here which should fail, if it were given the example tests in the description, but instead passes
approximate equality is now used for
average_if()
added here
approved
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
he sad you crate the fun to do this work not use a fun or method from string module
bruh
python new test framework + random tests are required. updated in this fork
Already raised as issue
I'm confused as to why it knows c represents characters in the strings
Loading more items...