Accept a square matrix as input and store it in a variable named matrix.
Input
The first line of input is n, the number of rows in the matrix. Each of the next n lines has a sequence of n space-separated integers, one row of the matrix per line.
Output
Nothing has to be printed. Store the matrix as a list of n rows, where each row is a list of n integers, in a variable named matrix. That variable is what gets graded.
Example
For the input
2
1 2
3 4
matrix must be [[1, 2], [3, 4]].
The input is read for you. Assign the answers to matrix.
You do not need to print anything — the values you assign to those names are what gets checked, in that order.
Input
2
1 2
3 4
Output
[[1, 2], [3, 4]]