input: Write a function to compute the element-wise product of two matrices A and B, resulting in matrix C. Each element in matrix C should be the product of the corresponding elements in matrices A and B. If the dimensions of A and B do not match, return an error message.
  
  
  def elementwiseMatrixProduct(A, B):
      if len(A) != len(B) or len(A[0]) != len(B[0]):
          return "Dimensions of matrices do not match"
  
      C = [[0 for _ in range(len(A[0]))] for _ in range(len(A))]
  
      for i in range(len(A)):
          for j in range(len(A[0])):
              C[i][j] = A[i][j] * B[i][j]
  
      return C
  
  assert elementwiseMatrixProduct([[3, 4], [1, 2]], [[7, 5], [0, 1]])==[[21, 20], [0, 2]]
  assert elementwiseMatrixProduct([[2, 3], [4, 5]], [[1, 2], [3, 4]])==[[2, 6], [12, 20]]
  assert elementwiseMatrixProduct([[2], [3]], [[5], [10]])==[[10], [30]]
  assert elementwiseMatrixProduct([[1, 2]], [[3, 4]])==[[3, 8]]
  assert elementwiseMatrixProduct([[1, 2], [3, 4]], [[5, 6]])=="Dimensions of matrices do not match"
  
output: def elementwiseMatrixProduct(A, B):
      if len(A) != len(B) or len(A[0]) != len(B[0]):
          return "Dimensions of matrices do not match"
  
      C = [[0 for _ in range(len(A[0]))] for _ in range(len(A))]
  
      for i in range(len(A)):
          for j in range(len(A[0])):
              C[i][j] = A[i][j] * B[i][j]
  
      return C