M1 - np.array (I [12,7,3], [4 ,5,6], [7,8,9] ]) M2 - np. array(( [1,0,01, [0,1,0], [0,0,1] 1) result = [[0 for x in range(3)] for y in range(3)1 for i in range(len(M2)): for j in range(len(M1[0])) : for k in range (len (M1)): result[i][j] += M2[i][k] * M1[k][j] print (result) [[12, 7, 31, [4, 5, 6], [7, 8, 9]]

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question

CREATE A FLOWCHART FOR THIS CODE ASAP THANK YOU

M1 - np.array([
[12,7,3],
[4 ,5,6],
[7 ,8,9]
])
M2 - np.array([
[1,0,01,
[0,1,01,
[0,0,1]
result = [[0 for x in range (3)] for y in range (3)]
for i in range(len(M2)) :
for j in range (len(MI[0])):
for k in range (len (M1)):
result[i][j] += M2[i][k] * M1[k][j]
print (result)
[[12, 7, 31, [4, 5, 6], [7, 8, 9]]
Transcribed Image Text:M1 - np.array([ [12,7,3], [4 ,5,6], [7 ,8,9] ]) M2 - np.array([ [1,0,01, [0,1,01, [0,0,1] result = [[0 for x in range (3)] for y in range (3)] for i in range(len(M2)) : for j in range (len(MI[0])): for k in range (len (M1)): result[i][j] += M2[i][k] * M1[k][j] print (result) [[12, 7, 31, [4, 5, 6], [7, 8, 9]]
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage