00:01
So for this problem, before we even jump into trying to write the program, we're going to need to understand how we actually calculate a mean, we know that to calculate a mean, we take the sum of a list of numbers, and then we divide it by the number of values that we have.
00:19
So we'll need to, pardon me, we'll need to have one step where we will find the sum of the data, a step where we find the length of the data input, and a step where we actually calculate, and we'll also probably want to get an output.
00:48
So i'll bring up idle now, moment here.
00:55
Okay, so the first thing that we're going to want to do is to get everything set up.
01:01
So we know that we are, pardon me, something's messed up here.
01:06
Okay, there we go.
01:08
We are calculating the mean.
01:10
So what we'll do is define our own original function here, as we were asked to do.
01:20
So we'll call it just calculate underscore mean numbers, we'll have s as our sum of the input numbers, we'll have n as the number of values, the length or the sample size.
01:42
So we'll use the command len of numbers.
01:45
And then we'll actually calculate the mean, mean is going to be equal to s over n, then we'll want to return the mean, then we'll put in, if name equals underscore main, put in our data...