WAP a program that takes an array SS as an argument and add all the odd values and display the sum
Answers
Answered by
1
Explanation:
Python numpy sum() function syntax
- The array elements are used to calculate the sum.
- If the axis is not provided, the sum of all the elements is returned. ...
- We can specify dtype to specify the returned output data type.
- The out variable is used to specify the array to place the result. ...
- The keepdims is a boolean parameter.
Similar questions