+2 votes
in NumPy by
Print first position, last position and 2nd and 3rd position

1 Answer

0 votes
by
Print first position, last position and 2nd and 3rd position

 num = np.array([5,15,25,35]) if not added

print(‘\n first position : ‘,num[0]) #5

print(‘\n third position : ‘,num[2]) #25
...