Exemple #1
0
def main():
    return difference(naturals_to(100))
Exemple #2
0
def squareOfSum_test():
    assert_equal(
        squareOfSum(*naturals_to(10)),
        3025)
Exemple #3
0
def difference_test():
    assert_equal(
        difference(naturals_to(10)),
        2640)
Exemple #4
0
def sumOfSquares_test():
    assert_equal(
        sumOfSquares(*naturals_to(10)),
        385)