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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started