Question: Task 1 (Python... Numpy) Create a Numpy array of 3*3 dimension with values ranging from 9 to 17. Hint: Use the arange() and reshape() functions

Task 1 (Python... Numpy)

Create a Numpy array of 3*3 dimension with values ranging from 9 to 17.

Hint: Use the arange() and reshape() functions available in Numpy.

Task 2

Create a Numpy array holding values that are multiples of 5 starting from 5 to 100. Print this array in reverse order using a single statement.

Task 3

Create an array of the height of students given below. Using aggregate functions, calculate the minimum height, maximum height, average height and standard deviation. Print the output up to a maximum of two decimal places.

Students height: 5.8, 5.6, 6.1, 5.9, 5.5, 5.7, 5.6, 5.9, 6.2.

Task 4

The overall years of experience of 12 directors are given below:

22, 21, 18, 23, 19, 20, 22, 21, 20, 19, 23, 22

Their years of experience in previous companies are given below in respective order:

16, 12, 15, 20, 10, 15, 20, 17, 18, 12, 14, 10

i) Create an array that holds only the experience of directors in their current company.

ii) Find the minimum, maximum and average years of experience of the directors in their current company.

iii) Create an array that contains years of experience of directors that are greater than 5 years. How many directors have more than 5 years of experience?

Task 5

Create two arrays of dimension 3*3 (3*3 matrix) using the two lists of numbers given below:

3,3,3,2,2,2,1,1,1

1,1,1,2,2,2,3,3,3

Find the product of the two matrices

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!