-1
I would like to know HOW is it possible to write a program that reads an array numpy vector np.array([])
user-created.
In lists, for example, we do:
n = int(input("Determine o número elementos da lista: "))
i = 0
lista = []
while i < n:
elemento = int(input("Digite os elementos da lista: "))
i += 1
lista.append(elemento)
print(lista)
In the case of nummpy array vectors, how would this be done without me having to write a program that first receives a user list and then does:vetor = np.array([lista])
?
It has how to write a program that allows the user to make his own vector?