+2 votes
in NumPy by (30.5k points)
Print first position, last position and 2nd and 3rd position

1 Answer

0 votes
by (30.5k points)
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

Related questions

+2 votes
+1 vote
+1 vote
asked Jul 8, 2021 in NumPy by rajeshsharma (23.1k points)
+2 votes
...