Skip to content

Instantly share code, notes, and snippets.

@MeherajUlMahmmud
Created May 2, 2021 13:01
Show Gist options
  • Save MeherajUlMahmmud/ea0ae12cf6dbe8b580b24241a4a7a684 to your computer and use it in GitHub Desktop.
Save MeherajUlMahmmud/ea0ae12cf6dbe8b580b24241a4a7a684 to your computer and use it in GitHub Desktop.
def add(mat1, mat2):
row1 = len(mat1)
col2 = len(mat2[0])
result = zeros(row1, col2)
for i in range(row1):
for j in range(col2):
result[i][j] = mat1[i][j] + mat2[i][j]
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment