Return an n x n matrix where every row is [0, 1, ..., n-1].
[0, 1, ..., n-1]
Input
5
Output
[[0. 1. 2. 3. 4.] [0. 1. 2. 3. 4.] [0. 1. 2. 3. 4.] [0. 1. 2. 3. 4.] [0. 1. 2. 3. 4.]]
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)