Question: Basic Python Question What is the shape of the following numpy amay? np. random, seed (1955) x - np. random, randin (2,2,2,2) xprint(x.shape) WHint: I

Basic Python Question
Basic Python Question What is the shape of the following numpy amay?

What is the shape of the following numpy amay? np. random, seed (1955) x - np. random, randin (2,2,2,2) xprint(x.shape) WHint: I have not loaded the necessary package here... but you should print(shape-22) array(4,4,4,4) [[[0.50847906,0.97761802]}0.[[0.72708872,0.576462731.19793440.44571315]]]]) (2,2,2,2) Question 4 What is the output of the following code? import numpy as np list1 =[5,5,5] list2 =[10,10,10] np tist1 =np. array(list1) np-list2 = np, array(list2) np _list1p_list2 arrayilo. 5, 0.5, 0.5]) amay [5,5,5]) .5 repeat all

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 Databases Questions!