Skip to content

No.9's solution is wrong in 100_Numpy_exercises_with_hints_with_solutions.md file #101

Open
@kamigusa

Description

@kamigusa

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions