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