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.
thing is you return float although the result always is an integer value
Why are we supposed to return ['None'] if there is no fitting string in the List. It makes absolute sense to just return an empty List if there is NO match in the List.
Also there could be the STring 'None' in the list with searchword 'no' and you wouldn't know, was there no result or is 'None' the only result...
There are so many Katas where you have to do some weird stuff when having an edge case instead of just doing the obvious and i don't mfing get it.
I know it shouldn't bother me, but it really makes me mad, probably that is the purpose........ fy
case 1: return "1!/0!";
For this purpose string formatting was introduced
This comment is hidden because it contains spoiler information about the solution
yeah, double negative
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I think int(l**.5) is explicit enough, floor confuses more then it helps imo
Zeile 2-7 zusammengefasst
I don't get the return line.. why can't you just
EDIT: I just tested it, you can do it like this actually, you either overthought it completely or just wanted to troll
How did this get so many Best Practice Votes?
First building a dictionary, then checking each key how many odd letters exist..
I don't get the voting here
it is certainly not best practice to put values to a list and then sum them up, when you could just add each value on the same variable.
Further i don't understand at all, why he used strings as dictionary keys, converting them later to int instead of using the required type in the dictionary in the first place.
Is there anything gained by the first part of the if-expression
When v isn't found at all the code doesn't start to count the appearances of v but when it is found it always does both.
I don't get how this improves the code but then there wouldn't be 4 'Best Practices' Votes.
I would really appreciate if someone could explain how this improves the code
This comment is hidden because it contains spoiler information about the solution
Loading more items...