No.9's solution is wrong in 100_Numpy_exercises_with_hints_with_solutions.md file
kamigusa opened this issue · 1 comments
kamigusa commented
No.9's solution may be miscopied from No.10's solution.
I suggest the solution should be revised from Before to After.
9. Create a 3x3 matrix with values ranging from 0 to 8 (★☆☆)
hint: reshape
Before
nz = np.nonzero([1,2,0,0,4,0])
print(nz)
After
np.arange(0,9).reshape(3,3)