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]]
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.