New course!
Every coder should learn
Generative AI!
Try a free lesson
- 1
what is the solution n, p = [int(x) for x in input().split()]
In a matrix, or 2-d array X, the averages (or means) of the elements of rows is called row means. Given a 2D array, return the rowmeans. Input Format First line: two integers separated by spaces, the first indicates the rows of matrix X (n) and the second indicates the columns of X (p) Next n lines: values of the row in X Output Format An numpy 1d array of values rounded to the second decimal. 1.5 1 2 2.9 Sample Output [1.25 2.45]
11th Nov 2021, 8:38 AM
Zaid Zren
![Zaid Zren - avatar](https://blob.sololearn.com/avatars/994e114a-fef3-4bb6-907d-6f8721bb9423.jpg)
4 Answers
Made with
by
Sololearn
| ©
2024