Courses
Tracks
All courses
/
Intro to NumPy: Pocket Observatory
Indexing and Views Quiz
3. Find the Signal: Indexing, Slicing, and Views
11 / 11
3. Find the Signal: Indexing, Slicing, and Views
Indexing and Views Quiz
Question 1 of 5
20%
What does
a[[3, 1]]
do to a one-dimensional NumPy array?
Takes the slice from index 3 to 1
Returns elements at indices 3 and 1, in that order
Returns a view of all elements
Swaps those two elements in place
Submit Answer