Professor of Computer Science @ Olin College

# Solutions Extension Demo

Last updated: December 24th, 2018

#### Exercise 1¶

Write a function add that receives two numbers and returns the sum of them:

In [ ]:
def add(x, y):
pass

In [ ]:
# Tests:

def add(x, y):

$$\sum_{i=1}^n i^2$$