Can the author or someone equally invested in the python port of this kata explain why the input space of tests must include type(None) but python initialization of function shows inputs as array1 and array2 -- implying inputs of type([])? Was this purely to ensure reading of the entire kata description or was passing None as input trying to expose the audience to try/except statements?
I think it is best practice because it produced a concise and understandable solution within the constraints outlined by the problem. The problem never required specific exceptions to be caught.
A smart one
Can the author or someone equally invested in the python port of this kata explain why the input space of tests must include type(None) but python initialization of function shows inputs as array1 and array2 -- implying inputs of type([])? Was this purely to ensure reading of the entire kata description or was passing None as input trying to expose the audience to try/except statements?
Why are square brackets used? Thank you
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
I assume it's becuz there's no such test case for this kata.
Brilliant
Love it wish it was mine
I think it is best practice because it produced a concise and understandable solution within the constraints outlined by the problem. The problem never required specific exceptions to be caught.
simple, I like it.
This kata doesn't give you sets.
This comment is hidden because it contains spoiler information about the solution
This is not best practice as you don't catch specific exceptions. This would be poor practice
don't post solutions to the dashboard, anyone can see it, and there's no need for it. i've added the spoiler flag to your comment
This comment is hidden because it contains spoiler information about the solution
Loading more items...