Computer Science, asked by kaajuu3159, 11 months ago

A1 = array([[1,2,3,4],[5,6,7,8],[9,10,11,12]]) print(a1[:,1])

Answers

Answered by 17eucs142
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