Question: I think it is import numpy as np np.array(my_array[ , ]) not sure what the command is for random integers i cant find it print(sum(my_array))

I think it is import numpy as np np.array(my_array[ , ]) notI think it is

import numpy as np

np.array(my_array[ , ]) not sure what the command is for random integers i cant find it

print(sum(my_array))

x=np.median(my_array)

print(my_array[x

help please

QUESTION 3 Write the following code (use as many statements as you wish to do this, but put a comment before each line of code indicating what that line does. 1. Create a numpy array that has 30 random integers ranging between 10 and 30 (including 10 and 30). 2. Print out the array. 3. Print out the sum of all the numbers in the array. 4. Print out all numbers in the array that are greater than the average of the array

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!