Question: This is a coding question. Only core Python will be needed for this question. Given a list of integers: a = [1, 5, 10, 9,

This is a coding question. Only core Python will be needed for this question. Given a list of integers: a = [1, 5, 10, 9, 3], you need to write Python code to print the average value of all the integers in this list. You must use a loop to solve this question. You cannot use any library functions.

Question 2 This is a coding question. The numpy package will be needed for this question. You may refer to https://numpy.org/ for more details about the package, that is widely used in AI, machine learning, data science, etc. Given a list of integers: b = [[[1, 2], [3, 4], [5, 6]], [[7, 8], [9, 10], [11, 12]]], you need to convert it to a numpy array first, and then print the shape, mean, and variance value of this array using numpy library functions and attributes.

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!