a=eval(input('enter list A: '))
b=eval(input('enter list B: '))
f=[]
for i in range(0,len(a)):#r1
    r=[]
    for j in range(0,len(b[0])):#c2
        sum=0
        for k in range(0,len(a[0])):#c1
            sum+=a[i][k]*b[k][j]
        r.append(sum)
    print(sum)
    f.append(r)
print(f)

b76c31e55d7cd14c774f6cb05b869d8c8b68e0d1
<mask token>

<mask token>
for i in range(0, len(a)):
    r = []
    for j in range(0, len(b[0])):
        sum = 0
        for k in range(0, len(a[0])):
            sum += a[i][k] * b[k][j]
        r.append(sum)
    print(sum)
    f.append(r)
print(f)

a = eval(input('enter list A: '))
b = eval(input('enter list B: '))
f = []
for i in range(0, len(a)):
    r = []
    for j in range(0, len(b[0])):
        sum = 0
        for k in range(0, len(a[0])):
            sum += a[i][k] * b[k][j]
        r.append(sum)
    print(sum)
    f.append(r)
print(f)

a=eval(input('enter list A: '))
b=eval(input('enter list B: '))
f=[]
for i in range(0,len(a)):#r1
    r=[]
    for j in range(0,len(b[0])):#c2
        sum=0
        for k in range(0,len(a[0])):#c1
            sum+=a[i][k]*b[k][j]
        r.append(sum)
    print(sum)
    f.append(r)
print(f)
