Question: In python Learning Objective: To implement functions that manipulate/analyze a list Instructions: Create 5 functions, one that finds the smallest value in a list by
In python
Learning Objective: To implement functions that manipulate/analyze a list
Instructions: Create 5 functions, one that finds the smallest value in a list by index, and another one that finds the smallest value by item. Remember that a for statement iterates through iterable objects. Additionally, you will create a function that returns the mean from a list, one that returns the median, and that returns the mode.
Create 5 functions. Create a function that: (Do not use predefined methods, create your own algorithms)
- finds the smallest value in a list using iteration by index
- finds the smallest element in a list by using iteration by item
- computes the mean in a list of numeric values.
- computes the median in a list of numeric values.
- computes the mode - finds the most frequently occurring value in a list and return that value
Implement your functions:
- Create a list that stores the number of new covid 19 cases for the past week, grab your data from Google. For example ( Covid 19 Boston )
- Use the mean to find the average number of cases, use the median to find the median number of cases, mode to find the most frequent number of cases and min to find the lowest number of cases.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
