1
I’m starting in python and I need to solve several Python matrix exercises, but I can’t make the right impression. Understanding the Logica of this exercise I can solve the other quiet.
Could someone help me? The code is this:
A = []
for i in range(0, 2):
for j in range(0, 3):
A.append(input('Informe um valor para o vetor A: '))
print(A)
In case when I type for example 1, 2, 3, 4, 5, 6 the program prints: ['1', '2', '3', '4', '5', '6']
I need the program to print this way: [['1', '2', '3'], ['4', '5', '6']]