Reference no: EM132382447
Question
Problem: Make a function that counts using a while loop and/or a for loop. The function header code should look like: def count(start, step, stop):
start = starting integer number
step = integer increments from the starting number
stop = number you should stop at or should not exceed
Example: count (2,3,10) should output
2
5
8
Problem:
1A. A function to calculate the mean of a list of numbers and print the result.
B. A function to calculate the median of a list of numbers and print the result.
C. A function to accept a list of numbers as input. The program will output the min, max, mean, and median of the list including the label; e.g., "Mean: 4". You can use functions to find the min() and max() and the functions created above should be used to print the mean and median. Test the function with the lists:
test0 = [4,2,6,2,6,2,8,5,6,3,2,5]
test1 = [9,2,3,4,6,2,6,5,6,3,2]