Created
June 16, 2020 07:56
-
-
Save sanjitk7/d1ad56f5f43f98835286dc4a465df3df to your computer and use it in GitHub Desktop.
write the multiply function after its test is written
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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