Make a program that creates two vectors, using lists, and receives 6 integers in each of the vectors. Finally, the program should create a 3x4 matrix from the interleaving of the two vectors.
This merge will occur as follows:
Capture two elements of vector1 and place in array
Capture two elements of vector2 and place in array
Repeat until you populate the array
How do I do this merge?
vet1 = []
vet2 = []
vet3 = []
print ('Informe os valores do primeiro vetor')
for i in range(0, 3):
vet1.append(int(input('Informe um numero: ')))
print ('Informe os valores do segundo vetor')
for i in range(0, 3):
vet2.append(int(input('Informe um numero: ')))
for i in range(0, 3):
vet3.append(vet1[i])
vet3.append(vet2[i])
print (vet3)
This was the code I made for testing