Умножьте каждый элемент на x в Python
a_list = [1, 2, 3]
an_array = np.array(a_list)
multiplied_array = an_array * 2
print(multiplied_array)
OUTPUT
[2 4 6]
Vast Vendace
a_list = [1, 2, 3]
an_array = np.array(a_list)
multiplied_array = an_array * 2
print(multiplied_array)
OUTPUT
[2 4 6]