Skip to content

Instantly share code, notes, and snippets.

@sanjitk7
Created June 16, 2020 07:23
Show Gist options
  • Save sanjitk7/04159d8ab55d64444ba461dcacf1a3e7 to your computer and use it in GitHub Desktop.
Save sanjitk7/04159d8ab55d64444ba461dcacf1a3e7 to your computer and use it in GitHub Desktop.
def add(A,B):
C = [[0,0,0],[0,0,0],[0,0,0]]
for i in range(0,len(A)):
for j in range(0,len(A[0])):
C[i][j] = A[i][j] + B[i][j]
return C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment