Very helpful error output! Clear, detailed, and insightful for the programmer. This should be more common!
Best Practice but adding a comment would have sent the solution to Mars!
single element array isn't a degree 1 poly
two element array is a degree 1 poly
If the product of the sum and its reverse are equal to n, then won't n % s always be 0?
This comment is hidden because it contains spoiler information about the solution
Nice, did not realise // existed in Python3! Would have made my solution easier. #TIL
Not an issue.
Spoiler flag, please...
Also, please use markdown formatting for your code next time.
Anyway: It's because if predicate(arr[i]) is never false, nothing will get returned. Add return [arr, ] to the end of the function. This will make your code work.
return [arr, ]
I would have upvoted if the variable names were decent.
Omg! Hahahaha, maths or die.