Exemplo n.º 1
0
 def test_combinatorics(self):
     self.assertEqual(my_module.combinatorics(5, 3), 10)
Exemplo n.º 2
0
import my_module


total = 0
for n in xrange(1, 101):
    for r in xrange(1, 100):
        if n > r:
            if my_module.combinatorics(n, r) > 1000000:
                total += 1
print(total)