0
I developed a program that, when informing a value, this value is allocated in all columns of the row, returning me an array like this:
array([[0, 0, 0],
[233, 233, 233],
[0, 0, 0],
[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])]
However, I would like it to be separated by digits, so:
array([[0, 0, 0],
[2, 3, 3],
[0, 0, 0],
[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])]
That is, when reporting a value 233
I would like it to be separated by unit and, each unit populating a column. Could you assist me? I tried to make some changes to the code, but I didn’t reach my goal.
My code:
LINHAS = 6
COLUNAS = 3
ab = numpy.zeros((LINHAS, COLUNAS), dtype=int)
while True:
index += 1
ac = int(input('Insira um numero de 3 digitos:')
ab[index] = ac
vlw, I’ve been wanting to do just that
– 형사씨
just a suggestion, be more specific in what you want the program to do when you ask a question, because there’s a better chance you’ll get the answer you’re looking for. Thanks!
– Flavio Moraes
Draw, leave it :D
– 형사씨