Login
Remember
Register
Ask a Question
Print first position, last position and 2nd and 3rd position
+2
votes
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
Print first position, last position and 2nd and 3rd position
print-numpy
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 4, 2021
by
sharadyadav1986
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
...