majh0
0
Q:

np.array python

>>> x = np.array([2,3,1,0])
>>> x = np.array([2, 3, 1, 0])
>>> x = np.array([[1,2.0],[0,0],(1+1j,3.)]) # note mix of tuple and lists,
    and types
>>> x = np.array([[ 1.+0.j, 2.+0.j], [ 0.+0.j, 0.+0.j], [ 1.+1.j, 3.+0.j]])
4
import numpy as np

arr = np.array([1, 2, 3, 4, 5])

print(arr)
print(type(arr))
1

New to Communities?

Join the community