0
def matrizsomada(a, b):
num_elementos_a = len(a)
num_elementos_b = len(b)
x = []
for i in range(num_elementos_a or num_elementos_b):
x.append([a[i],b[i]])
return x
a = [1,2,3]
b = ['a','b','c','d','e']
print(matrizsomada(a,b))
- I want you to return the output as [1,'a',2,'b',3,'c',’d','e'] ,but it’s giving the error
What mistake you’re making?
– Luiz Augusto