hello friends this video about how to add two matrices by using python program
code:
A=[[ 10 , 20 , 10 ],
[ 4 , 5 , 6 ],
[ 2 , 3 , 5]]
B=[[ 3 , 2 , 4 ],
[ 3 , 3 , 9],
[ 4 , 4 , 2]]
result=[[ 0 , 0 , 0 ],
[ 0 , 0 , 0],
[ 0 , 0 , 0]]
for i in range(len(A)):
for j in range(len(A[0])):
result[i][j]=A[i][j]+B[i][j]
for r in result:
print(r)
On this page of the site you can watch the video online Python Program to Add Two Matrices | Python | Love programming with a duration of hours minute second in good quality, which was uploaded by the user Love Programming 07 August 2020, share the link with friends and acquaintances, this video has already been watched 4,241 times on youtube and it was liked by like viewers. Enjoy your viewing!