A1 = array([[1,2,3,4],[5,6,7,8],[9,10,11,12]]) print(a1[:,1])
Answers
Answered by
6
Answer:
Syntax Error
Explanation:
Array Slicing requires atleast one of the three parameters eg: array[x:y:z]
where x is the starting position , y is the end position , z is the increment/decrement .
Some common examples are array[::-1] returns the reversed array
-> array[::2] returns the elements at even positions
-> array[x:y] returns elements from index x (including x) till y (excluding y),
Similar questions
English,
5 months ago
Computer Science,
5 months ago
Math,
5 months ago
Hindi,
11 months ago
Psychology,
1 year ago