def Mean(data): num_values = len(data) total = 0 for num in data: total = Addition.sum(total, num) return Division.fraction(total, num_values)
def Fraction(self, a, b): self.Result = Division.fraction(a, b) return self.Result
def test_MathOperations_division(self): self.assertEqual(3, Division.fraction(9, 3))
def test_MathOperations_division(self): self.assertEqual(2, Division.fraction(4, 2))