LearnPy Hub
← NumPy problems
Medium

Reshape

Read r and c, then print np.arange(r * c).reshape(r, c) one row per line with values separated by spaces.

Input

Two integers.

Output

r lines.

Sample 1

Input
2 3
Output
0 1 2
3 4 5

Sample 2

Input
1 1
Output
0
solution.py
Output appears here
Reshape · Python practice problem · LearnPy Hub