Challenge - mean, max, and min
Challenge - mean, max, and min
Now it’s time to design and implement your own list-based algorithm.
Choose one of the following functions: mean (average), minimum, or maximum. Think of a real-world scenario where you need to work with data and find the average, minimum, or maximum of a list of values. This could be using data that you work with in school, or for a hobby or other interest.
Write an algorithm in plain English for your chosen function.
Implement the function in Python and demonstrate it using randomly generated data or data from a real-world problem.
Don’t forget to:
Choose sensible names for functions, parameters, and variables, and use comments as appropriate