Answers for "define array python numpy"

0

python numpy array

import numpy as np

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

print(ary[0]) # 1
print(ary[2]) # 3
print(ary[::2]) # array([1, 3])
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language