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)

  1. finds the smallest value in a list using iteration by index
  2. finds the smallest element in a list by using iteration by item
  3. computes the mean in a list of numeric values.
  4. computes the median in a list of numeric values.
  5. 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

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!