Find the sum of the odd numbers within an array, after cubing the initial integers
but
The function should return undefined/None/nil/NULL if any of the values aren't numbers
so, what if number is float (not equal to its integer part)? It is a number, but it is not an odd number (even or odd are defined only for integer)
Seems like, text might be
"The function should return undefined/None/nil/NULL if any of the values aren't integers"
and there must be any test with float (at least there are none of those in python version)
but
so, what if number is float (not equal to its integer part)? It is a number, but it is not an odd number (even or odd are defined only for integer)
Seems like, text might be
"The function should return undefined/None/nil/NULL if any of the values aren't integers"
and there must be any test with float (at least there are none of those in python version)