Compute and return the rank of matrix Z as an int.
Z
Input
[[1. 0. 0. 0.] [0. 1. 0. 0.] [0. 0. 1. 0.] [0. 0. 0. 1.]]
Output
4
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)