Python Programming - Arrays - Discussion
Discussion Forum : Arrays - General Questions (Q.No. 35)
35.
Given a NumPy array
arr = np.array([3, 1, 4, 1, 5, 9])
, what does the code arr[::-1]
do?
Answer: Option
Explanation:
The code
arr[::-1]
reverses the order of elements in the array.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers