Page 1 of 1

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
by answerhappygod
15 Implement The Following Function In The Pydev Module Functions Py And Test It From A Pydev Module Named T15 Py 1 De 1
15 Implement The Following Function In The Pydev Module Functions Py And Test It From A Pydev Module Named T15 Py 1 De 1 (64.31 KiB) Viewed 51 times
Python code pls
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']])