Question: using numpy in python 4. Write a function called small_odd that takes as a parameter an array, and returns the value of the smallest odd
4. Write a function called small_odd that takes as a parameter an array, and returns the value of the smallest odd number in that array. (Hint: You will need to have some way of remembering what the smallest number is) For example, consider the arrayx-numpy.array(16,2,74,3]); small odd(x) should retum 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
