Skip to content

Instantly share code, notes, and snippets.

@sanjitk7
Created June 16, 2020 07:56
Show Gist options
  • Save sanjitk7/d1ad56f5f43f98835286dc4a465df3df to your computer and use it in GitHub Desktop.
Save sanjitk7/d1ad56f5f43f98835286dc4a465df3df to your computer and use it in GitHub Desktop.
write the multiply function after its test is written
def multiply (A,B):
C = [[0,0,0],[0,0,0],[0,0,0]]
for i in range(len(A)):
for j in range(len(A[0])):
for k in range(len(B)):
C[i][j] += A[i][k] * B[k][j]
return C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment