I am writing a function that has two parameters F & L and the function returns the sum of the squares of all the intergers between F & L

e.g if i call def sum(3,5) should output 50 (9 + 16 + 25)

def sum(first,last):

sqaure = i

for i in range(first,last + 1)

this is my program code at the moment what am I missing?