Compose function readmatrix() that will read values for a matrix from the user and return the numbers stored in a two-dimensional list format. The function should have parameters defining the dimensions (number of rows and columns) of the matrix.
Define function main() that asks the user to enter matrix dimensions, then calls readmatrix() and prints out the list it returns.
Sample interaction demonstrates the execution of the program, when main() is called.
Please enter the number of rows and number of columns, e.g. 5 6: 3 2
Enter row 1 numbers separated by a space 3 4
Enter row 2 numbers separated by a space 67 78 89
--each row must have 2 values. Skipping this entry...
Enter row 2 numbers separated by a space 67 78
Enter row 3 numbers separated by a space 56 3
Given this interaction, the method should return the following list:
[[3, 4], [67, 78], [56, 3]]