Question: In this lab, we will learn to: Implement arithmetic using lists Create new lists from old lists Implement algorithms to compute statistics This lab has
In this lab, we will learn to:
Implement arithmetic using lists
Create new lists from old lists
Implement algorithms to compute statistics
This lab has three problems.
Start by downloading
studentTemplate.py from DL and rename it to FirstNameLastNameLabpy
Problem #
In this problem we want to use arithmetic on corresponding elements of lists. Specifically, we want the sum
of multiplying corresponding elements of the first two lists and then subtracting the corresponding element
of the third list.
For example, if we have list list and list the output is which is
calculated in the following way
Notice: This requires that all three lists are the same length. If the lengths of the lists are not all the same,
you should output the following message, "All lists are required to be the same length."
Problem #
This time, create a new list containing arithmetic done on the corresponding elements of the other lists.
Specifically, the elements of the new list should be determined by multiplying corresponding elements of the
first two lists and then subtracting the corresponding element of the third list.
For example, if we have list list and list then new list is list
which is calculated in the following way
Problem #
In the student
Template.py file, there are three list containing several numbers. Find the mean and median
of of each list without importing the statistics module. If needed Definition of mean & Definition of median.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
