Question: ( b ) Consider the following python code: a = n p * a r r a y ( [ 1 , 2 , 3

(b) Consider the following python code:
a=np*array([1,2,3,3])
b=np*array([1,5,2,3])
c=a[:,np.newas]*b[np. newaxis, :]
the result c is:
A scalar.
An array of size 4.
A matrix of size 44.
( b ) Consider the following python code: a = n p

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!