Answer:
Following are the code to this question:
def variance(self):
average = self.avg
return (self.sum_x_sq / self.n - average* average)
Explanation:
In the given question, some information missing, that is a program so, the correct code to this question can be described as follows: