Computer Science, asked by pythoncse786, 7 months ago

n1=np.array([1,2,3,4],[6,7,8,9])
n1.shape
The following code will give you the output:
O (2,4)
(4,2)
(2,2)
Ć (4,4)​

Answers

Answered by shilpa85475
8

(2,4)

(4,2)

(2,2)

(4,4)

Explanation:

An array is a manner of arranging matters in rows and columns.

When you purchase such things as cookies, toy cars, or maybe a carton of eggs, the objects withinside the package deal are covered as much as create an array.

An array constantly has rows and columns.

Each column should comprise the identical range of items as the alternative columns, and every row should have the identical range as the alternative rows.

Answered by nancychaterjeestar29
0

Answer:

A(2,4)

Explanation:

In this question they have given an array which consists of 2 rows and 4 columns they are [1,2,3,4] and [6,7,8,9]. These two array elements are called by the function n1.shape that means the structure of the matrix which denotes (rows,columns) that is 2,4 .here n1 is the array name and np is the object name of the variable n1. so the array is called by the object np. hence the answer is (2,4).

#SPJ2

Similar questions