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