Question: Write a function matrixPrint(d) that takes a dictionary as a parameter in the following format: {1: [1,4,0], 3: [3,6,0], 2:[2,5,8]} where the key represents the
Write a function matrixPrint(d) that takes a dictionary as a parameter in the following format: {1: [1,4,0], 3: [3,6,0], 2:[2,5,8]} where the key represents the row number and the value represents the numbers in the row. The function prints a matrix in the following format: 1 4 0 2 5 8 3 6 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
