LearnPy Hub
← NumPy problems
Easy

Shape of a Grid

Read r and c, then r lines of c integers. Build a 2-D array and print its shape, size and number of dimensions.

Input

r c, then r lines.

Output

Three lines.

Sample 1

Input
2 3
1 2 3
4 5 6
Output
(2, 3)
6
2

Sample 2

Input
1 1
7
Output
(1, 1)
1
2
solution.py
Output appears here
Shape of a Grid · Python practice problem · LearnPy Hub