15. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t15.py: 1 de
Posted: Tue Jul 12, 2022 8:11 am
15. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t15.py: 1 def matrix_equal (matrix1, matrix2): 4 5 6 7 8 9 "AHHHHH 10 11 12 13 14 15 Compares two matrices to see if they are equal - i.e. have the same contents in the same locations. Use: equal = matrix_equal(matrix1, matrix2) Parameters: matrix1 the first matrix (2D list of *) matrix2 the second matrix (2D list of *) True Returns: equal - True if matrix1 and matrix2 are equal, False otherwise (boolean) Sample execution: 1 matrix_equal([['c', 'a', 't'], ['d', 'o', 'g'], ['b', 'i', 'g']], [['c', 'a', 't'], ['d', 'o', 'g'], ['b', 'i', 'g']])