0
Make a program that creates two vectors, using lists and, receive 6 integer numbers in each of the vectors. Finally, the program must create a 3x4 matrix from the intercalation of the two vectors.
This intercalation shall take place as follows::
Captures two elements of vector 1 and places them in the matrix
Capture two elements of vector 2 and place in the matrix
Repeat until fill in the matrix
How do I intersperse ?
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 to test
You have to show what you have already done, if the doubt is the intercalation show the code to create the vectors
– Robert
edited with the code
– Hítalo Fillipy