Question: Question 2: Perform the following actions using python: Use x = np.random.randint(0, 1000, size = (10, 10)) to generate 10x10 array and use a for

Question 2:

Perform the following actions using python:

Use x = np.random.randint(0, 1000, size = (10, 10)) to generate 10x10 array and use a for loop to find out how many even numbers are in it. (25 points)

Randomly generate a 8x9 array from a normal distribute with mean = 1, sigma = 0.5. Calculate the mean of elements whose indexes have a relation of (i+j)%5 == 0 (i is row index and j is column index).

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!