Why don’t I get the answer? What is wrong here. Appreciate help
def multiply_basic(poly1, poly2):
#poly1 = [2, 0, 5, 7]
#poly2 = [3, 4, 2]
len_poly1 = len(poly1)
len_poly2 = len(poly2)
multiply_basic = []
multiply_basic_len = len_poly1 + len_poly2 - 1
print(len(poly1))
print(len(poly2))
for i in range(multiply_basic_len):
multiply_basic.append(0)
for i in range(len_poly1):
for j in range(len_poly2):
multiply_basic[i+j] += poly1[i] * poly2[j]
else:
return
multiply_basic([2, 0, 5, 7], [3, 4, 2])
print(multiply_basic)