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.
That's the whole point of this kata, though.
This comment is hidden because it contains spoiler information about the solution
I think this might be the best solution as it gets around the ugly "not _ is None and..."s by a nice try/catch
test ([3,4],[0,25], False) This solution is not applicaple for many test cases where any sum of squares rules apply to the arrays
also list(map(lambda i:i * i),array1) is more efficient than [i*i for i in array1]
The explanation is badly worded, I recommend the second clause that readily explains what is requested
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
so 0.0 in the sample test is not 0, 0.0 or float(0)?
integer 0 is actually not "0"
But yeah, those 0.0's are not 0.0's either
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This shouldn't be upvoteds as best practices. It is not Pythonic
This comment is hidden because it contains spoiler information about the solution