PPA-4
Question
Write a function named dim_equal
that accepts two matrices A
and B
as arguments. It should return True
if the dimensions of both matrices are the same and False
otherwise.
You do not have to accept input from the user or print output to the console. You just have to write the function definition.
Hint
Consider the following solution to this problem:
Do you think this solution is correct? Does it pass all the test cases? What is it missing? For what inputs will it fail?