Premium problem37. Rows Ranging 0–4

Medium Locked

Return a 5×5 matrix where every row is [0, 1, 2, 3, 4] (use broadcasting).

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.]]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)