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
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
Get step-by-step solutions from verified subject matter experts
