2 June
2 June
# print(M1)
'''
for row in M1:
print(row)
'''
'''
for row in M1:
for ele in row:
print(ele,end=' ')
print()
'''
'''
2 7 9
1 3 7
9 8 4'''
'''
# Varying length of DDA
M1 = [[1,2,3,7],[9,3,5],[2],[6,7]]
for row in M1:
for ele in row:
print(ele,end=' ')
print()
'''
'''
1 2 3 7
9 3 5
2
6 7
'''
# program list
# 1. WAP to calculate sum of element of every row in DDA
# 2. WAP to calculate sum of element of every Column in DDA
# 3. WAP to calculate sum of Two DDA ( addition of matrices )
# 4. WAP to calculate transopose of DDA
# 5. WAP to calculate multiplication of two MATRICES
'''
# 1. WAP to calculate sum of element of every row in DDA
M1 = [[3,1,4],[5],[8,9],[2,2,3,3]]
for row in M1:
for ele in row:
print(ele,end=' ')
print(" = " , sum(row))
'''
# 2. WAP to calculate sum of element of every Column in DDA
# Assignment
# PRINTING
for row in m3:
for ele in row:
print(ele,end=' ')
print()
'''
m1 m2 m3
1 2 3 4 5 6 5 7 9 m3[0]
7 7 8 1 1 9 8 8 17 m3[1]
3 4 1 8 2 3 11 6 4 m3[2]
'''